Please help something is wrong


#1


exercise 5

SyntaxError: Unexpected identifier


// Check if the user is ready to play!

confirm("are you ready to play?")

age = prompt("What's your age?")

if (age<13)
{
    console.log("bro, ur allowed to play, but yr parrents hav to pay for ur shiz, k?")
}
else
{
    console.log("lets go then!")
}

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?'")

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.'")
}


#2

Hi here

if userAnswer = "yes"

put the if condition inside () and then instead of = put ===

Hint

if (condition ) {

}
else {

}