Basic Data Structures - Create complex multi-dimensional arrays

Tell us what’s happening:
I just don’t understand what’s wrong. help please!

Your code so far

let myNestedArray = [
  // Only 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', 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/116.0.0.0 Safari/537.36

Challenge: Basic Data Structures - Create complex multi-dimensional arrays

Link to the challenge:

let myNestedArray = [      ....THE FIRST LEVEL
  // Only change code below this line
  ['unshift', false, 1, 2, 3, 'complex', 'nested'], ...THE SECOND LEVEL
  [[['deep']],     ....THE THIRD LEVEL SHOULD HAVE ONE SQUARE BRACKET LESS FROM THE LEFT
    [[['deeper']],     ...THE FOURTH LEVEL SHOULD HAVE ONE SQUARE BRACKET MORE FROM THE RIGHT
      [[['deepest']]]]],  ...THE FIFTH LEVEL SHOULD HAVE ONE MORE BRACKET FROM THE LEFT, AND ONE LESS FROM THE RIGHT
  ['loop', 'shift', 6, 7, 1000, 'method'],
  ['concat', false, true, 'spread', 'array'],
  ['mutate', 1327, 'splice', 'slice', 'push'],
  ['iterate', 3849, 7, '8.4876', 'arbitrary', 'depth']
  // Only change code above this line
];

The explanation is given in the code above.

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