Help with multi-demensional arrays with indexes [SOLVED]

Help with multi-demensional arrays with indexes [SOLVED]
0

#1

I’m having trouble understanding this problem. I know the answer and can move on but I want to understand it before I do.

InstructionsUsing bracket notation select an element from myArray such that myData is equal to 8.

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

// Only change code below this line.
var myData = myArray[0][0];

I know the answer is [2][1] but why? Help!


#2

Never mind I got it, 0, 1, 2 so the third array if you will and position 2 which is 8.