From Nightfox@DIGDIST/BATTLEST/FREEWAY to All on Thursday, September 17, 2015 20:02:00
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
Bridget Kern
Wednesday, June 03, 2026 07:52:14
from
New Providence, New Jersey
via
Telnet
Guest
Wednesday, June 03, 2026 07:40:55
from
New Providence, New Jersey
via
Telnet
Guest
Tuesday, June 02, 2026 11:40:43
from
New Prov Nj
via
Telnet
Guest
Tuesday, June 02, 2026 11:37:58
from
New Prov Nj
via
Telnet