Access MultiDimensional Arrays With Indexes

Access MultiDimensional Arrays With Indexes
0

#1

Tell us what’s happening:
I guess I don’t understand this if arr[3] [[10,11, 12] then wouldn’t arr[2][0] equal the 789?

Your code so far

// 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 =[[1,2,3], [4,5,6], [7,8,9], [[10,11,12], 13, 14]];
arr[1];

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:54.0) Gecko/20100101 Firefox/54.0.

Link to the challenge:


#2

with this data

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

myData[3] would be [[10, 11, 12], 13, 14]

myData[2] would be [7, 8, 9]

myData[2][0] would be 7