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
W4DYY Sunday, June 01, 2025 14:20:43
from Conyers, GA
via Telnet
KK6TBN Sunday, June 01, 2025 11:14:38
from Sacramento, CA
via Telnet
KJ4UL Sunday, June 01, 2025 11:00:23
from Clearwater, FL
via Telnet
AA3JF Sunday, June 01, 2025 10:31:30
from Knoxville, TN
via Telnet
Dr. What Sunday, June 01, 2025 09:26:20
from Rockford, MI
via Telnet
K0HNM Sunday, June 01, 2025 09:13:02
from Poplar Grove, IL
via Telnet
KC9YY Sunday, June 01, 2025 08:44:12
from Auburn, IN
via Telnet
W3MJA Sunday, June 01, 2025 08:36:34
from Erie, PA
via Telnet