Create complex multi-dimensional arrays ixtlahucan

Tell us what’s happening:
can t pass tests one and three.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0.

Link to the challenge:

Ok, let’s debug this:
let arr = [‘hello’, ‘world’, 111, false]; this is a one level deep array

now look at your code and count the levels of your array.

i get the concept, however adding or subtracting brackets does not allow me to pass the test

  1. You are missing a comma after 'nested'
  2. The 'deeper' array has to be within the 'deep' array like ['deep', ['deeper']] and then do the same, put the 'deepest' array within the 'deeper' array.
1 Like

all for the lack of a comma , thanks a lot