Last exercice for Cycles ex 8


#1

Can someone tell me what's wrong ?

for var (var i=100; i>0; i-=5) {
console.log(i);
}

This is what the computer tells me " SyntaxError: Expected token '(' " and yet I don't see where the '(' problem is ....


#2

Hi try to remove the var outside the ( )
So your code should be liKe that

for (var i=100; i>0; i-=5) {
console.log(i);
}