Complex multi-dimensional arrays

Tell us what’s happening:
Describe your issue in detail here.

Where is my comma missing please?
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'],
['iterate', 1.3849, 7, '8.4876', 'arbitrary', 'depth'],[[['deeper']]]]],
[[[["deepest"]]]]
// Only change code above this line
];
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.109 Safari/537.36

Challenge: Create complex multi-dimensional arrays

Link to the challenge:

Which test is failing?

SyntaxError: unknown: Unexpected token, expected "," (16:1)

  14 | [[[["deepest"]]]]
  15 |   // Only change code above this line
> 16 | ];
     | 
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'],
['iterate', 1.3849, 7, '8.4876', 'arbitrary', 'depth'],[[['deeper']]]]],
[[[["deepest"]]]]
// Only change code above this line
];

Your spacing makes it hard to trace where but it looks like you have a mismatch. I’d count your opening and closing brackets.

If I get it right you need to add ] at the end or right after “deepest”

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