June 1, 2022, 12:42pm
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;
**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
June 1, 2022, 12:50pm
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 ] .
June 1, 2022, 12:56pm
thank you so much, I was a bit spaced out on this one!
December 1, 2022, 12:56am
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.