Isn't this faster for iterating over the elements:<p><pre><code> var a = ["banana", Math.min, 4, "apple"];
for (var i=a.length; i; i--) {
console.log(a[i]);
}</code></pre>
I want to stress that the following will work, but get you in trouble. Javascript does not support associative arrays.<p><pre><code> var myData = new Array;
myData['key1'] = 'value1';
myData['key2'] = 'value2';
myData['key3'] = 'value3';
myData.length; //0</code></pre>