Memory assignment to arrays
<p>I was wondering if any one knows how memory is handled with JS arrays if you have an array that starts with a high value.</p>

<p>For example, if you have:</p>

<pre><code>array[5000] = 1; 
</code></pre>

<p>As the first value in the array, everything before 5000 simply does not exist, will the amount of memory assigned to the array cater for the unassigned 4999 positions prior to it... or will it only assign memory to the value in the array for [5000] ?</p>

<p>I'm trying to cut down on the amount of memory used for my script so this led to me wondering about this question :)</p>
