Skip to main content

--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--

--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]];