,I'm not able to advance

Tell us what’s happening:
Describe your issue in detail here.
Im still not able to do it,I made the code the exact same as the one in the video,can u tell me where Im going wrong

  **Your code so far**

// Setup
var myArray = [];

// Only change code below this line
var i = 0;
while(i < 5) {
myArray.push(i);
i++;
}
console.log(myArray)

  **Your browser information:**

User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; Lenovo TB-8704X) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.210 Safari/537.36

Challenge: Iterate with JavaScript While Loops

Link to the challenge:

Hi Jigglypancakes,

The problem is not the same as the one presented in the video.

Your code will push the numbers 0 to 4. The challenge is to push the numbers 5 to 0.

You should be able to do it now, but let me know if you need more hints :wink:

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.