Access MultiDimensional Arrays With Indexes, please help

Access MultiDimensional Arrays With Indexes, please help
0

#1

Tell us what’s happening:

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

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.111 Safari/537.36.

Link to the challenge:
https://www.freecodecamp.org/challenges/access-multidimensional-arrays-with-indexes


#2

Please I am stuck in the challenge I need help please


#3

You are currently accessing the second array ([1]) and from that array the fourth item ([3]) which doesn’t exist. myData needs to equal 8, so you have to select the second element from the third array. Note that arrays are zero-indexed, meaning that they start at zero (myArray[0][0] = 1).


#4

Thank you sir, it has been solved