Iterate with JavaScript Do...While Loops new help

Tell us what’s happening:
Hi i’m stuck here can anyone help me?

Your code so far

// Setup
var myArray = [];
var i = 10;

// Only change code below this line.
for (var i = 1; i < 6; i++){

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/68.0.3440.106 Safari/537.36.

Link to the challenge:

What are you stuck on? You know how to make a do…while loop?

What’s wrong in my answer ? it’s not working…

You don’t have a do while loop. The instructions tell you how to make one.

Ok thank you… i got it!

1 Like