Basic JavaScript: Iterate with JavaScript While Loops question

Tell us what’s happening:
I tried everything even warätched the tutorial still didnt get the answer

Your code so far


// Setup
var myArray = [];
// Only change code below this line
var i = 5;
while(i <= 5)
while(i <= 4)
while(i <= 3)
while(i <= 2)
while(i <= 1)
while(i <= 0) {
myArray.push(i)
i++;
}
console.log(myArray)

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; LM-X420) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Mobile Safari/537.36.

Challenge: Iterate with JavaScript While Loops

Link to the challenge:

3 posts were merged into an existing topic: Basic JavaScript: Iterate with JavaScript While Loops is not working

Please do not create duplicate topics for the same challenge/project question(s). This duplicate topic has been unlisted.

Thank you.