Basic JavaScript: Access Multi-Dimensional Arrays With Indexes

// Setup
var myArray = [[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]];

// Using bracket notation select an element from myArray such that myData is equal to 8.
var myData = myArray[2][1];
Posted on Categories Codes

Leave a Reply

Your email address will not be published. Required fields are marked *