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
Sun Jul 6 19:55:10 2025
from
New York City, New York
via
Telnet
Guest
Wed Jul 9 09:51:34 2025
from
Mss
via
Telnet
Darkstar
Wed Jul 9 07:02:30 2025
from
Nebraska
via
Telnet
Guest
Thu Jul 10 06:58:53 2025
from
Moscow
via
Telnet