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
Guest
Monday, June 30, 2025 03:08:25
from
System
via
Telnet
Guest
Tuesday, June 24, 2025 17:46:08
from
System
via
Raw
Carl Carlson
Saturday, June 21, 2025 14:17:07
from
Springfield, OR
via
Telnet
Guest
Tuesday, June 10, 2025 08:06:17
from
System
via
Raw