how to print 2d array in javascript code example
Example: js display 2d array
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]);
}
}