Board: [DeveloperNet] Javascript Subject: Avoid 'new Array()' From: Nightfox Date: Thu Sep 17, 2015 21:02 I just saw this JavaScript tip on w3schools.com: --------------------------------------------------- Avoid new Array() There isno 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 .