Am stuck on topic 5: controlling for the loops. need help please


#1


Replace this line with your code.


#2

Hello @nyakatoridget,

Please could you post what you've tried out and the error(s)?

Thank you. :slight_smile:


#4

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


#5

having a semi-colon at the end:

for (var i=5; i=51; i+=5); <- this one

will prevent the loop from executing properly


#6

Thanks dear it has worked out