828 B
828 B
id, title, challengeType, videoUrl, forumTopicId
id | title | challengeType | videoUrl | forumTopicId |
---|---|---|---|---|
cf1111c1c11feddfaeb7bdef | Nest one Array within Another Array | 1 | https://scrimba.com/c/crZQZf8 | 18247 |
--description--
You can also nest arrays within other arrays, like below:
[["Bulls", 23], ["White Sox", 45]]
This is also called a multi-dimensional array.
--instructions--
Create a nested array called myArray
.
--hints--
myArray
should have at least one array nested within another array.
assert(Array.isArray(myArray) && myArray.some(Array.isArray));
--seed--
--after-user-code--
if(typeof myArray !== "undefined"){(function(){return myArray;})();}
--seed-contents--
// Only change code below this line
var myArray = [];
--solutions--
var myArray = [[1,2,3]];