Source Code:
(back to article)
var myArray = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]; var element = myArray[1][2]; // gets the value in the second row, third column (6) console.log(element)
Result:
Report an issue