Create complex multi-dimensional arrays- I thought I found 5 levels of array

I’m certain that I have created 5 levels of my array, not sure. I would be so happy with some help. Many thanks guys!

   **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']],[
 ['concat', false, true, 'spread', 'array', ]],[
 ['mutate', 1327.98, 'splice', 'slice', 'push', 'deep']
 ],[
 [['iterate', 1.3849, 7, '8.4876', 'arbitrary', 'depth', 'deeper']]],[['deepest', 5, false]]
 // Only change code above this line
];
console.log(myNestedArray[5])
   **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15

Challenge: Create complex multi-dimensional arrays

Link to the challenge:

You have 5 entries in your array. You do not have an array (1) inside of an array (2) inside of an array (3) inside of an array (4) inside of an array (5).

2 Likes

Oh my lord…Okay, many thanks, I will revisit. Cheers.

1 Like

Reformatted for clearer nesting relationships:

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

They’re all passing apart from the 5th but understand what you mean.

Oh I see what you mean. Thanks.

Thank you Jeremy! I completed it.

1 Like

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