832 B
832 B
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
cf1111c1c11feddfaeb1bdef | Iterate with JavaScript While Loops | 1 |
Description
undefined
Instructions
undefined
Tests
tests:
- text: ''
testString: 'assert(code.match(/while/g), "You should be using a <code>while</code> loop for this.");'
- text: ''
testString: 'assert.deepEqual(myArray, [0,1,2,3,4], "<code>myArray</code> should equal <code>[0,1,2,3,4]</code>.");'
Challenge Seed
// Setup
var myArray = [];
// Only change code below this line.
After Test
console.info('after the test');
Solution
// solution required