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
Gwylbert
Sat Dec 6 19:57:50 2025
from
Sydney, Nsw
via
Telnet
Adrianh
Sat Dec 6 13:13:47 2025
from
England
via
Telnet
Guest
Sat Dec 6 12:57:35 2025
from
Breckinshire, New York
via
Telnet
Adrianh
Sun Dec 7 12:40:21 2025
from
England
via
Telnet