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
James S Friday, July 11, 2025 19:12:18
from Chicago, IL
via Telnet
Jessica S Friday, July 11, 2025 19:12:02
from Belwood, NC
via Telnet
April 302 Friday, July 11, 2025 18:55:04
from Spartanburg, SC
via Telnet
Suzy Q Friday, July 11, 2025 18:32:46
from Spartanburg, SC
via Telnet