From Nightfox@DIGDIST to All on Thu Sep 17 20:02:22 2015
I just saw this JavaScript tip on w3schools.com: ---------------------------------------------------
Avoid new Array()
There is no need to use the JavaScript's built-in array constructor new Array().
Use [] instead.
These two different statements both create a new empty array named points:
var points = new Array(); // Bad
var points = []; // Good ---------------------------------------------------
Does anyone know why using 'new Array()' is considered bad?
Nightfox
---
þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
From Nightfox@DIGDIST/BATTLEST/FREEWAY to All on Thu Sep 17 20:02:00 2015
I just saw this JavaScript tip on w3schools.com: ---------------------------------------------------
Avoid new Array()
There is no need to use the JavaScript's built-in array constructor new Array().
Use [] instead.
These two different statements both create a new empty array named points:
var points = new Array(); // Bad
var points = []; // Good ---------------------------------------------------
Does anyone know why using 'new Array()' is considered bad?
Nightfox
---
þ Synchronet þ Digital Distortion: digitaldistortionbbs.com
Who's Online
Recent Visitors
Hannibal
Tue Jun 30 16:45:42 2026
from
Des Moines
via
SSH
Geek2
Tue Jun 30 11:03:50 2026
from
Euclid, Oh
via
Telnet
Hannibal
Mon Jun 29 03:56:55 2026
from
Des Moines
via
Telnet
Geek2
Sun Jun 28 12:12:27 2026
from
Euclid, Oh
via
Telnet