Files
freecodecamp--freecodecamp/curriculum/challenges/english/blocks/basic-javascript/cf1111c1c11feddfaeb7bdef.md
T
wehub-resource-sync dde272c4b8
i18n - Build Validation / Validate i18n Builds (24) (push) Has been cancelled
CI - Node.js / Lint (24) (push) Has been cancelled
CI - Node.js / Build (24) (push) Has been cancelled
CI - Node.js / Test (24) (push) Has been cancelled
CI - Node.js / Test - Upcoming Changes (24) (push) Has been cancelled
CI - Node.js / Test - i18n (italian, 24) (push) Has been cancelled
CI - Node.js / Test - i18n (portuguese, 24) (push) Has been cancelled
CD - Docker - GHCR Images / Build and Push Images (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 11:55:53 +08:00

740 B

id, title, challengeType, forumTopicId, dashedName
id title challengeType forumTopicId dashedName
cf1111c1c11feddfaeb7bdef Nest one Array within Another Array 1 18247 nest-one-array-within-another-array

--description--

You can also nest arrays within other arrays, like below:

const teams = [["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--

--seed-contents--

// Only change code below this line
const myArray = [];

--solutions--

const myArray = [[1, 2, 3]];