From Nightfox@DIGDIST/BATTLEST/FREEWAY to All on Thursday, September 17, 2015 20:02:00
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
Kalvin
Friday, August 15, 2025 14:52:45
from
Texas
via
Telnet
Guest
Saturday, August 09, 2025 23:25:13
from
Louisville, Ky
via
Telnet
Dmitriy Kulikov
Monday, July 21, 2025 06:36:43
from
Krasnoyarsk
via
Telnet
Guest
Friday, July 18, 2025 07:10:37
from
System
via
Raw