You can run the same code multiple times by using a loop.
The first type of loop we will learn is called a "<code>while</code>" loop because it runs "while" a specified condition is true and stops once that condition is no longer true.
<blockquote>var ourArray = [];<br>var i = 0;<br>while(i < 5) {<br> ourArray.push(i);<br> i++;<br>}</blockquote>
Let's try getting a while loop to work by pushing values to an array.
</section>
## Instructions
<sectionid='instructions'>
Push the numbers 0 through 4 to <code>myArray</code> using a <code>while</code> loop.
</section>
## Tests
<sectionid='tests'>
```yml
- text: You should be using a <code>while</code> loop for this.