# Access Multi-Dimensional Arrays With 6-13-19 Indexes

Tell us what’s happening:

Help solve this , i can not calculate this to obtain the right solyion

// 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];
myArray[0],[2];

User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36.

well, the first line is accessing the first element of the first subarray of myArray and giving that value to the variable myData, which I think is the line you have to change
the second line is incorrect syntax, the comma shouldn’t be there plus you are not doing anything with the value

remember, it is asking you to make so that myData is equal to 8 extracting the value from the array

Thanks for the quick response , i am actually finding it difficult calculating the arrays in order to obtain 8 as the answer.
wish you can give me a break down to solve it

to get 8 you’re supposed to look for the 2nd element in the 3rd sub-array. I hope this helps

you don’t need to calculate the array, the array is already there, you just need to extract the data from the array using the square brackets and the numbers

Eventually created a square table and got the answer .
position 0 1 2 3
0 1 4 7 10
1 2 5 8 10
2 3 6 9 12

Thanks all for the fitback:+1:

Eventually created a square table and got the answer .
position 0 1 2 3
0 1 4 7 10
1 2 5 8 10
2 3 6 9 12