Last Practice For Loop


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

it prints 100, what did I do wrong?


Remove the semicolon after for(var i=100; i<=5; i-=5); <---


Now it doesn't print anything, dookoo_de.


Show me your code now, please


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


You should think about this line what did it say:



Ummmm, I'm not sure what to do


for(var i=100;i>5;i-=5;){

it's giving me unexpected token but the space after that is blank, it can't mean I have extra spaces, cause I thought the spaces didn't matter, right?


@thatoneguy74 you have an unnecessary semi colon before the closing bracket, and you don't have a semi colon after the second line. Also, if I'm not mistaken, the instruction asks you to count until 0, but not printing 0. Therefore your code shouldn't stop at 5.
Try this:

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


for(var i=100; i>=1; i=i-5)


couldnt you just do i -=5) ?????