Skip to content

leta91/create-multi-dimensional-arrays-in-JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

How to Create Multi-Dimensional Arrays in JavaScript ๐Ÿ—‚๏ธ

freeCodeCamp Challenge ๐Ÿ“Œ

We have defined a variable, myNestedArray, set equal to an array. To complete this challenge you need to:

  • Use any combination of strings, numbers, and booleans for data elements within myNestedArray
  • myNestedArray must have 5 levels of depth
  • Somewhere on level 3 include the string 'deep'
  • Somewhere on level 4 include the string 'deeper'
  • Somewhere on level 5 include the string 'deepest'

The solution and its explanation can be found on multi-dimensional-arrays.js in this repo ๐Ÿ–ฑ๏ธ