Why does a string index in a javascript array not increase the length size?
<p>In the example below, the array2.length is only ten, when in my mind, it should be 13. Why does the "string keyed" indexes not increase the length of the array? I can store things and still access it, and the VS debugger shows that those arrays are being stored properly. So why is the length not increased?</p>

<pre><code>var array2 = new Array();
array2["a"] = new Array();
array2["b"] = new Array();
array2["c"] = new Array();
for (var i = 0; i &lt; 10; ++i)
    array2[i] = new Array();

var nothing = "";
for (var i = 0; i &lt; array2.length; ++i)
    nothing = "";
</code></pre>
