How to print the follwing Multi-Dimensional array in Java Script?
<p>I have the following array (the code is written in Java) : </p>

<pre><code>String[][] a = new String[3][2];
a[0][0] = "1"; 
a[0][1] = "2"; 

a[1][0] = "1";  
a[1][1] = "2"; 

a[2][0] = "1";
a[2][1] = "2"; 
</code></pre>

<p>and what i want to do is to print 111222 and i accomplished that in Java by doing this:</p>

<pre><code>       for (int i=0;i &lt; a[i].length;i++){
       for(int j=0;j &lt;a.length;j++){
            System.out.print(a[j][i]);
       }
   }
</code></pre>

<p>What is the equivalent of this in JavaScript ? </p>
