mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-12 01:00:13 -04:00
1.0 KiB
1.0 KiB
id, title, challengeType, videoUrl, forumTopicId, dashedName
| id | title | challengeType | videoUrl | forumTopicId | dashedName |
|---|---|---|---|---|---|
| cf1111c1c11feddfaeb7bdef | 한 배열을 다른 배열 안에 중첩하기 | 1 | https://scrimba.com/c/crZQZf8 | 18247 | nest-one-array-within-another-array |
--description--
아래와 같이, 당신은 배열들을 다른 배열들 안으로 감싸 넣을 수도 있습니다.
const teams = [["Bulls", 23], ["White Sox", 45]];
이것을 다차원 배열(multi-dimensional array)이라고 부르기도 합니다.
--instructions--
myArray라는 이름의 중첩 배열을 하나 만드세요.
--hints--
myArray는 다른 배열 안에 적어도 한 개 이상의 중첩 배열을 가지고 있어야 합니다.
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
const myArray = [];
--solutions--
const myArray = [[1, 2, 3]];