Basic JavaScript - Access Multi-Dimensional Arrays With Indexes

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

Your code so far
I dont know what to do.

const myArray = [
  [1, 2, 3],
  [4, 5, 6],
  [7, 8, 9],
  [[10, 11, 12], 13, 14],
];

const myData = myArray[1][2];

Your browser information:

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

Challenge: Basic JavaScript - Access Multi-Dimensional Arrays With Indexes

Link to the challenge:

Maybe some part of the instruction is confusing? Do you have any speciifc question about instructions?

Also, you can add console.log(myData), and experiment with different indexes for myArray variable. You will see in the console the corresponding value.

for example

const myArray = [
  [1, 2, 3],
  [4, 5, 6],
  [7, 8, 9],
  [[10, 11, 12], 13, 14],
];

const myData = myArray[1][2];

console.log(myData)

if I add log to your current code, the console will show 6

Thanks, a lot sorted it out.

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