Oliver Eyton-Williams f1c9b08cf3 fix(curriculum): add isHidden: false to challenges
This includes certificates (where it does nothing), but does not
include any translations.
2020-05-25 16:25:19 +05:30

1.1 KiB

id, title, challengeType, isHidden, videoUrl, forumTopicId
id title challengeType isHidden videoUrl forumTopicId
cf1111c1c11feddfaeb7bdef Nest one Array within Another Array 1 false https://scrimba.com/c/crZQZf8 18247

Description

You can also nest arrays within other arrays, like below:
[["Bulls", 23], ["White Sox", 45]]

This is also called a multi-dimensional array.

Instructions

Create a nested array called 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

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

After Test

if(typeof myArray !== "undefined"){(function(){return myArray;})();}

Solution

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