What is wrong with this code?


5. Introduction to 'For' Loops in JS (8. Last practice for loop)

I don't really know what is wrong with this code, it keeps on telling me "unexpected token", what does that even mean? It also says that there is an error with my syntax! What is happening? Thanks. :ghost:

// Write your very own for loop! 
for ( i = 100; i > 0; i -= 5; )


why is there a semi-colon after i -= 5?


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