Help needed in complex-multidimensional-arrays

Help needed in complex-multidimensional-arrays
0.0 0

#1

Tell us what’s happening:
Guys i’m not actually understanding how to approach this challenge. I mean i get the basic idea but still i’m confused .Anyone wanna help me out here and give me a broader explanation about this topic and specifically on how to approach this problem.

Your code so far



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

Link to the challenge:


#2
  • You have to insert more elements in the provided array
  • these elements will allow you to reach the fifth level nest
  • the element at the third level must contain the word deep, the element at the fourth deeper etc…

Tip:

Don’t get distracted by all the pre-inserted elements, they are just background noise! :wink:


#3

I did every thing i can think of.But not working.Mind if you provide the solution ?.please


#4

Post what you tried and we can give you some more hints.