7/11 Syntax Problem


#1

I'm getting the error: SyntaxError: expected expression, got ')'

And I've looked at my code but I can't find the problem.

Here's my code.

for (i=10; i>-1; i-=) {
console.log(i);
}

var liftOff = true;

do {
console.log ("Blast off!");
liftOff = false;
} while(liftOff);

var flying = 4;

while(flying > 0) {
console.log ("I'm getting farther from Earth...");
flying = flying - 1;
}

Could someone find the error?


#2

in the last part i-= you need a value to be subtracted but you just close the ).