title: Displaying 2d Array onto a table? Javascript
body: <p>I am creating a 2d array with user input. How can I display the input on to a 3 by 3 table?</p>
  
  <pre><code>&lt;script language = javascript&gt;
  var b = [];
  for(var i=0; i&lt;3; i++){
  b[i] = [];
  for(var j=0; j&lt;3; j++){
  b[i][j] = window.prompt("b["+(i+1)+","+(j+1)+"] = ?");
  }
  }
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;table width="80%" border="2" cellspacing="0" cellpadding="0"&gt;
    &lt;tr&gt;
  &lt;td&gt; &lt;/td&gt;
  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
   &lt;/tr&gt;
   &lt;tr&gt;
  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
  &lt;td&gt;&amp;nbsp;&lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>