Basic JavaScript - Access Multi-Dimensional Arrays With Indexes

already solve the value problem but there’s something weong with my notatiion

Your code so far

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

const myData = myArray[3][0];

Your browser information:

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

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

Link to the challenge:

it says" You should be using bracket notation to read the correct value from myArray ."

Ya, I don’t think that hint is the greatest. You are using bracket notation. You just don’t have the correct index numbers in there.

P.S. You shouldn’t change the value of myArray. You might want to reset the step to get the original array back.

1 Like

thanks man!!! u saved me here i was stuck for hours

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