8. Last practise for loop /"SyntaxError: missing ) after for-loop control"


#1

Hi,

I get this message: "SyntaxError: missing ) after for-loop control". What is wrong with my code?

// Write your very own for loop!
for (var i = 100; i > 0; i-= 5;){
console.log(i);
}

The instructions say: "Once more, for practice: write a for loop that gets the computer to count down from 100 until 0 by 5. This time, make sure not to print 0."


#2

I got it right. I had a ; which should not be after

i-= 5