Yep. And you can also do
var foo = new Array();
to accomplish the same thing. No real reason to give a size to the array for most purposes.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.