title: how can I show array of array¿
body: <p>I just want a way to return my tile map (array of an array)in the textarea, I mean at position
  [0][1] for example it paints a # for 1 values and empty fill for 0 ones. </p>
  
  <pre><code>&lt;script language="javascript"&gt;
  var wall = "#";
  var empty = "";
  var mapa = [
      [1, 1, 1, 1, 1],
      [1, 0, 0, 0, 1],
      [1, 0, 0, 0, 1],
      [1, 1, 1, 1, 1]
  ];
  
  function map() {
      for (i = 0; i &lt; mapa.length; i++) {
          for (j = 0; j &lt; mapa[i].length; j++) {
              mapa[i][j];
          }
      }
  }
  
  function display(form) {
      var myform = form;
      myform.caja.value = map();
  }
  &lt;/script&gt;
  &lt;body&gt;
  &lt;form name=form&gt;
  &lt;textarea name=caja cols=5 rows=5&gt;&lt;/textarea&gt;&lt;br&gt;
  &lt;input type=button value="click!" onclick="display(this.form)"&gt;
  &lt;/form&gt;
  </code></pre>