2018-10-08 13:34:43 -04:00

1.2 KiB

id, title, localeTitle, challengeType
id title localeTitle challengeType
cf1111c1c11feddfaeb7bdef Nest one Array within Another Array Anidar una matriz dentro de otra matriz 1

Description

También puede anidar matrices dentro de otras matrices, como esta: [["Bulls", 23], ["White Sox", 45]] . Esto también se llama una matriz multidimensional . 0

Instructions

Crea una matriz anidada llamada myArray .

Tests

tests:
  - text: <code>myArray</code> debe tener al menos una matriz anidada dentro de otra matriz.
    testString: 'assert(Array.isArray(myArray) && myArray.some(Array.isArray), "<code>myArray</code> should have at least one array nested within another array.");'

Challenge Seed

// Example
var ourArray = [["the universe", 42], ["everything", 101010]];

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

After Test

console.info('after the test');

Solution

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