O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

Yes. You may have seen the syntax: var myarray = new Array(3); What this does is create a new array, with three empty spots in it (that is, an array with length 3, but no values yet).


Cover of Head First JavaScript Programming


non-literal array creation?