I commonly see developers use an expression like the following in JavaScript:
arr = [] arr[arr.length] = \"Something\" arr[arr.length] = \"Another thing\" >
I think its not about performance, or at least is not such a big deal... what really matters here is declarative way vs imperative way.