* fix: Chinese test suite Add localeTiltes, descriptions, and adjust test text and testStrings to get the automated test suite working. * fix: ran script, updated testStrings and solutions
1.1 KiB
1.1 KiB
id, title, challengeType, videoUrl, localeTitle
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
cf1111c1c11feddfaeb7bdef | Nest one Array within Another Array | 1 | 将一个Array嵌套在另一个Array中 |
Description
[["Bulls", 23], ["White Sox", 45]]
。这也称为多维数组。 Instructions
myArray
的嵌套数组。 Tests
tests:
- text: <code>myArray</code>应至少有一个嵌套在另一个数组中的数组。
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 Test
console.info('after the test');
Solution
// solution required