From Nightfox@DIGDIST 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
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
Arpacc
Sat Dec 20 09:37:19 2025
from
Boston, Ma
via
Telnet
Infectedbootsector
Fri Dec 19 21:44:44 2025
from
Severna Park, Md
via
Telnet
Chipcunk
Thu Dec 18 08:18:11 2025
from
Siloam Springs, Ar.
via
HTTP
John F Kennedy
Wed Dec 17 03:19:17 2025
from
Crazyworldbbs.Com:2323
via
Telnet