Ex.6


#1


Ex. 6


SyntaxError: Invalid or unexpected token


var feedback = prompt("What do you rate this game?)
if(feedback > 8)
{
console.log("Thank you! We should race at the next concert!")
}
else
{
    console.log("I'll keep practicing coding and racing.")


#2

You dont like semisolons?
var feedback = prompt("What do you rate this game?);
console.log("Thank you! We should race at the next concert!");
console.log("I'll keep practicing coding and racing.");

if (condition){
 do this
} else {
or this
}

#3

Also don't forget that other bracket { }


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.