#5 syntax error: Unexpected keyword 'else'


#1

// Check if the user is ready to play!
confirm("You ready to rumble")
var age = prompt("whats your age, kid");
if (age<13)
{
console.log("You're in kid, but I am not responsable");
}
else
{
console.log("Game on brother, game on");
}
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 Justin Beiber on stage");

if (userAnswer==="yes");
{
console.log("You and Bieber start racing. It's neck and neck! You win by a sholace!");
}
else
{
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");
}


#2

Hmm... There is a clue here:


#3

if (userAnswer==="yes") {

// I cleaned it up. Now it's telling Error put yes in the answer option


#4

There is no more syntax errors.. check if you did exactly what the instructions told you.. if it tells you to print a string, dont write it.. copy it from instructions, it has to be exact


#5

I refreshed the website and ran again. I worked. Thanks