Iterate with JavaScript While Loops

Iterate with JavaScript While Loops
0.0 0

#1

Tell us what’s happening:

My code works well and the answer is correct. However the reviewer is still not satisfied.

Your code so far

// Setup
var myArray = [];

// Only change code below this line.
var i = 0;
while (i < 5) {
  myArray.push(i);
  i++;
}```
**Your browser information:**

Your Browser User Agent is: ```Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36```.

**Link to the challenge:**
https://www.freecodecamp.org/challenges/iterate-with-javascript-while-loops

#2

This code is correct. Try to refresh the page and write the same code. In my case it’s working.