Multi Dimensional Arrays, Multiple errors, totally lost

Tell us what’s happening:
Describe your issue in detail here.

I’m not sure what I’m doing wrong here, I feel a little lost on this section

  **Your code so far**
const myArray = [
[1, 2, 3],
[4, 5, 6],
[7, 8, 9],
[[10, 11, 12], 13, 14],

const myData = myArray[3][1];
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:100.0) Gecko/20100101 Firefox/100.0

Challenge: Access Multi-Dimensional Arrays With Indexes

Link to the challenge:

let walk through your code

This is saying get the third element in the array which is [[10, 11, 12], 13, 14] then get the element at index 1 which is 13, remember to start counting from 0
However the challenge wants you to find 8

1 Like

I believe it’s supposed to select the Y axis the number is on, followed by the X axis the the number is located at?

Your last comma was suppose to have a data and then be closed with a ] .

thank you so much, I was a bit spaced out on this one!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.