Iterate with JavaScript While Loops 2.0

Tell us what’s happening:
Describe your issue in detail here.
I’ve searched for help through hints and through the video and the loop didnt return correctly. Please assist me in this problem

Your code so far

var i = 0;

while (i < 5)


// Setup
var myArray = [];

// Only change code below this line

var i = 0;
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/92.0.4515.107 Safari/537.36 Edg/92.0.902.55

Challenge: Iterate with JavaScript While Loops

Link to the challenge:

Look at the instructions again. I think the key word here is descending (i.e. from high to low).

1 Like

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

1 Like

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