FreeCodeCamp.com - Basic JavaSript - Nest one Array within Another Array
Link
You can also nest arrays within other arrays, like this:
[["Bulls", 23], ["White Sox", 45]]
. This is also called a Multi-dimensional Array.Instructions
Create a nested array called
myArray
.
Sollution:
// Example
var ourArray = [["the universe", 42], ["everything", 101010]];
// Only change code below this line.
var myArray = [["hi", 22],["people",6]];
Komentáře
Okomentovat