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