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: