Tell us what’s happening:
I peaked ahead at the Solution, but it does not make any sense to me.
From what I see, there are 5 arrays to begin with, nested within the “myNestedArray”
but when submitting code, im being told there is not 5 layers of depth… then what are these here? they certainly are Arrays, and they are within another Array, so how are they not 5 layers deep?
Honestly, I usually have to look at the solutions, simply because the Examples FCC gives makes it more difficult to understand the concept were trying to learn.
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','deep'],
['mutate', 1327.98, 'splice', 'slice', 'push', 'deeper'],
['iterate', 1.3849, 7, '8.4876', 'arbitrary', 'depth', 'deepest']
// Only change code above this line
];
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36
.
Challenge: Create complex multi-dimensional arrays
Link to the challenge: