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
Guest
Thu May 8 08:48:39 2025
from
Amsterdam
via
Telnet
Guest
Thu May 8 08:42:20 2025
from
Amsterdam
via
Telnet
Guest
Thu May 8 05:24:17 2025
from
Arizona
via
Telnet
Guest
Fri May 9 02:29:44 2025
from
Amsterdam
via
Telnet