three-dimensional array in javascript
<pre><code>var a = new Array();
var b  = [1,2,3,4,5,6,7];
for(i in b){a[i] = new Array(new Array());}
a[0][1][2] = Math.random();// error:VM205:1 Uncaught TypeError: Cannot set property '2' of undefined(…)
</code></pre>

<p>How to use three-dimensional array in javascript?</p>

<p>i mean how to use it like java.<br>
eg: <code>double a = new double[length][length][length];</code>  </p>

<p>how to memorize memory in advance.</p>