I keep geting an error (fixed)


#1

i tried everything but it will not work.
// Check if the user is ready to play!
confirm("are you ready to play");
var age = prompt("What is you age");
if(age < 13)
{
console.log("you can play but we take no responsibility.")
}else{

console.log("let's play")

}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'")
var userAnswer = prompt("Do you want to race Bieber on stage?")
if(userAnswer === "yes")
{
console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!")
}
else
{
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
}
var feedback = prompt("rate our game fron 0 to 10");
if(feedback > 8)
{
console.log("Thank you! We should race at the next concert!")
else
{
console.log("I'll keep practicing coding and racing.")
}
then I get this.
Oops, try again. There was a problem with your syntax.


#2

I only know basic Javascript, but i think you need some more semi coloms


#3

if(feedback > 8)
{
    console.log("Thank you! We should race at the next concert!")
    else

you forgot the closing } for your if.


#4

thank you for the help.