What\'s the real difference between declaring an array like this:
var myArray = new Array();
and
var myArray = [];
<
There's more to this than meets the eye. Most other answers are correct BUT ALSO..
new Array(n)n elements[1, 2, 3] || []delete or [1,,3] syntax)for .., forEach, map, etc)This probably isn't the case for older browser versions/browsers.