Last practise for loops error


Can't seem to get this to work at all and displayed error message "Your loop did not log 95 to the console"

for (var i = 100; i < 0; i -= 5); {


a loop will run as long in the condition is true, in the first run of the loop i is 100 so then this is the condition:

100 < 0

which is false. the loop will exit, hope this gives you insight to what is wrong with your code


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