while loop because it runs "while" a specified condition is true and stops once that condition is no longer true.
```js
var ourArray = [];
var i = 0;
while(i < 5) {
ourArray.push(i);
i++;
}
```
In the code example above, the while loop will execute 5 times and append the numbers 0 through 4 to ourArray.
Let's try getting a while loop to work by pushing values to an array.
myArray using a while loop.
while loop for this.
testString: assert(code.match(/while/g));
- text: myArray should equal [5,4,3,2,1,0].
testString: assert.deepEqual(myArray, [5,4,3,2,1,0]);
```