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
Mon Jun 30 23:15:58 2025
from
Sydney, Nsw
via
Telnet
Guest
Tue Jul 1 16:36:28 2025
from
Utah
via
Telnet
Guest
Tue Jul 1 15:21:51 2025
from
Nicholson, Ga
via
Telnet
Guest
Tue Jul 1 08:52:40 2025
from
Nicholson, Ga
via
Telnet