Multi-dimensional arrays not passing

This is not letting me pass. Not sure why…

  **Your code so far**

let myNestedArray = [
// Only change code below this line
['unshift', false, 1, 2, 3, 'complex', 'nested'],
['loop', 'shift', 6, 7, 1000, 'method'['deep' ['deeper' ['deepest']]]],
['concat', false, true, 'spread', 'array'],
['mutate', 1327.98, 'splice', 'slice', 'push'],
['iterate', 1.3849, 7, '8.4876', 'arbitrary', 'depth']
// Only change code above this line
];
  **Your browser information:**

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

Challenge: Create complex multi-dimensional arrays

Link to the challenge:

I think this -Somewhere on the third level, include the string deep , on the fourth level, include the string deeper , and on the fifth level, include the string deepest - is confusing you.

when it asked for third level it wanted the third level on myNestedArray so if you typed console.log(myNestedArray[2]) the console will type [ 'concat', false, true, 'spread', 'array' ] remember array index start with 0.

so if you want to add deep add it to myNestedArray[2] “3rd level of the next array”, want to add deeper? add it to myNestedArray[3] “4th level of the next array” , about deepest? add it to myNestedArray[4] “5th level of the next array” :dizzy_face: nested array are confusing :confounded:

Hmm, I’m not sure I follow where I went wrong. The only thing, you said array index start at 0… BUT the challenge instructions say “the outer-most array is level 1”. And so I did it per their instructions.

But the thing is, it’s not even passing the first part of the challenge where it’s supposed to be already passing right away “myNestedArray should contain only numbers, booleans, and strings as data elements.” This does not pass even though it should. I tried refreshing and restarting browser and still nothing.

to be honest, I am not skilled enough to explain it without solving the challenge.

check out the hint freeCodeCamp Challenge Guide: Create complex multi-dimensional arrays , and if you don’t understand something after checking the hint we can start again from there. :sweat_smile:

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