Exc8: need help on this one


#1

Not sure what im doing wrong here, but this is my code below.

for (var i=8;i<120,i+=12){
console.log(i);
}

var great = true;
while(great){
console.log("i'm doing a great job!");
great = false;
}


#2

You have a comma, where it should be a semicolon.


#3

Your for loop is

It should be:

for (var i = 8; i < 120; i +=12) {console.log(i); }

You had a comma , instead of a semicolon ;


#4

Fixed it. thanks cssblaster.


#5

You're right cadecodes, it works.