I have the following array (the code is written in Java) :
String[][] a = new String[3][2];
a[0][0] = \"1\";
a[0][1] = \"2\";
a[1][0] = \"1\";
a[1][1]
Here is the equivalent code in Javascript (no space its not a script version of java)
! edit missed the particulars of the loops, fixed now
var a = [];
a.push(["1", "2"]);
a.push(["1", "2"]);
a.push(["1", "2"]);
for(var i = 0; i < a[i].length; i++) {
for(var z = 0; z < a.length; z++) {
console.log(a[z][i]);
}
}