Not sure what's the problem? Access Multi-Dimensional Arrays With Indexes

Not sure what's the problem? Access Multi-Dimensional Arrays With Indexes
0

#1

Tell us what’s happening:
What am I doing wrong? It tells me that"myData should be equal to 8. You should be using bracket notation to read the correct value from myArray".

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 = myArray[3][1];

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/access-multi-dimensional-arrays-with-indexes


#2

close – are you SURE about the index of the first array? Remember, arrays are zero based.


#3

Ohhh I spotted my mistake now. Thank you !