5.Controlling for loop


#1


Replace this line with your code.

for (var i = 5; i < 51; i+=5) {
console.log(i);
}// Edit this for loop!

for (var i = 5; i < 51; i+=5) {
console.log(i);
}

problem: Oops, try again. Did you remember to only log every fifth number?


#2

you only need one loop, not two


#3

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