Syntax error


#1



Keeps saying i have a unexpected token here is what the error massage is,SyntaxError: Unexpected token {


Replace this line with your code. 
confirm ("Are you ready to play?");
var age = prompt("What's your age?");
if (age > 13) {
    console.log ("Sorry not old enough")    
} else { (age < 13)
    console.log ("Lets go!")
}
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 = prompt("yes") {
     console.log ("You and Bieber start racing. It's neck and neck! You win by a shoelace!")
} else { userAnswer = prompt("no")
     console.log ("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'")
}


#2

Remove this and your code should work :smile:


#3

Hi and this line

if (userAnswer = prompt("yes")

change the = with === and remove the prompt(
then here

else { (age < 13)
    console.log ("Lets go!")
}

remove the (age < 13)