title: Creating a 2d Array Javascript
body: <p>How can I create a 2d array in javascript and load it with the values from user input?</p>
  
  <pre><code>var b;
  b = new Array( 3 ); // allocate rows
  b[ 0 ] = new Array( 3 ); // allocate columns for row 0
  b[ 1 ] = new Array( 3 ); // allocate columns for row 1
  b[2]= new Array(3);
  </code></pre>