In certain other languages (AS3 for example), it has been noted that initializing a new array is faster if done like this var foo = [] rather than var foo
var foo = []
var foo
Initializing a simple array :
Initializing array within array :
Source : Sorce for the code