1.1 KiB
1.1 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bd7993c9c69feddfaeb8bdef | Store Multiple Values in one Variable using JavaScript Arrays | 1 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'assert(typeof myArray == "object", "<code>myArray</code> should be an <code>array</code>.");'
- text: ''
testString: 'assert(typeof myArray[0] !== "undefined" && typeof myArray[0] == "string", "The first item in <code>myArray</code> should be a <code>string</code>.");'
- text: ''
testString: 'assert(typeof myArray[1] !== "undefined" && typeof myArray[1] == "number", "The second item in <code>myArray</code> should be a <code>number</code>.");'
Challenge Seed
// Example
var ourArray = ["John", 23];
// Only change code below this line.
var myArray = [];
After Test
console.info('after the test');
Solution
// solution required