1.4 KiB
1.4 KiB
id | title | challengeType | videoUrl | forumTopicId | localeTitle |
---|---|---|---|---|---|
cf1111c1c11feddfaeb7bdef | Nest one Array within Another Array | 1 | https://scrimba.com/c/crZQZf8 | 18247 | Гнездо одного массива в другом массиве |
Description
[["Bulls", 23], ["White Sox", 45]]
. Это также называется многомерным массивом .
Instructions
myArray
.
Tests
tests:
- text: <code>myArray</code> should have at least one array nested within another array.
testString: assert(Array.isArray(myArray) && myArray.some(Array.isArray));
Challenge Seed
// Example
var ourArray = [["the universe", 42], ["everything", 101010]];
// Only change code below this line.
var myArray = [];
After Tests
if(typeof myArray !== "undefined"){(function(){return myArray;})();}
Solution
var myArray = [[1,2,3]];