11. Review unexpected token


#1

I keep getting a syntaxError: Unexpected Token. Any ideas?


var javaScript = function();
// Write your code below!
for (var javaScript = 0; javaScript < 10; javaScript++) {
    console.log("Awesome!" + javaScript + "out of 10 is great!");
}
var keepGoing = true;
while (keepGoing) {
console.log("Let's keep practicing");
keepGoing = false;
}
do {
    console.log("If you aren't getting it, keep practicing!")
};

Continuing the discussion from 11.Review: Browser Crashing For Simple Code:


#2

Remember, do's go before while's.

I did this, try it:

var lol = true;
do {
    console.log(4+8);
    lol = false;
} while (lol);