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]); } }