/news /forum /learn Basic JavaScript: Iterate with JavaScript While LoopsPassed - Trotter

Tell us what’s happening:
I changed the “i” to 5 because the count is to go down to 0. The example counted up to 5. I looked at the video. It was for the example - not for the problem to be solved.

Your code so far

// Setup
var myArray = [];

// Only change code below this line
var i = 5;
while (i < 5) {

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Iterate with JavaScript While Loops

Link to the challenge:


var i = 5; while (i < 5)
Your while loop can’t initiate because the condition isn’t met.