It keeps saying "unexpected identifier" when i type these sentences and run it


#1


if feedback > 8 
{
    console.log("Thank you! We should race at the next concert!");
}
else
{
    console.log("I'll keep practicing coding and racing.");
}
what is the error?


#2

put the () after the if statement, (feedback > 8)


#3

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