Oliver Eyton-Williams bd68b70f3d
Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

1.1 KiB

id, title, challengeType, videoUrl, forumTopicId
id title challengeType videoUrl forumTopicId
cf1111c1c11feddfaeb7bdef Nest one Array within Another Array 1 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]];