Here’s the code I used for the challenge, I guess I’m not understanding where I’m wrong
We have defined a variable,
myNestedArray
, set equal to an array. ModifymyNestedArray
, using any combination of strings, numbers, and booleans for data elements, so that it has exactly five levels of depth (remember, the outer-most array is level 1). 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'
.
let myNestedArray =[
// change code below this line
[‘unshift’, false, 1, 2, 3, ‘complex’, ‘nested’], //level 1
[[‘loop’, ‘shift’, 6, 7, 1000, ‘method’], //level 2
[ [‘concat’, false, true, ‘spread’, ‘array’, ‘deep’], //level 3
[ [‘mutate’, 1327.98, ‘splice’, ‘slice’, ‘push’, ‘deeper’], //level 4
[ [‘iterate’, 1.3849, 7, ‘8.4876’, ‘arbitrary’, ‘depth’, ‘deepest’]]]]] //level 5
// change code above this line
];