I've been staring at this for half an hour and can't find my error. I just have to make a simple for loop that can print something onto the console.
for(var i=0;i<4;i+1){
console.log(i);
}
It also is asking for a while loop and a do/while loop. I haven't done those yet, but I don't think that's the error. It says: SyntaxError: Unexpected token ILLEGAL
i + 1would not change the value ofiafter the stepsivariable is set to0and then never changed. The "Unexpected token ILLEGAL" error you quote doesn't make sense for the code shown - do you have more code that is not shown?