Need some help!


#1

Here is what I have so far. I'm having trouble and can't figure it out. Thanks for your help.
// Check if the user is ready to play!
confirm("Are You Ready?");
var age = prompt("What's Your Age?");
if ("age is less than 13");
{
console.log("Let's Begin!");
} else {
console.log("I'm Sorry!");
}
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.'");
}
SyntaxError: Unexpected keyword 'else'


#2

read the very last line of instructions: "Remember: = is for assignment, and === is to check if things are equal!", also the semicolon

it should be
if ("userAnswer === yes")

also, if("age < 13");


#3

You put a semi-colon after each if statement when there shouldn't be one there.


#4

Thanks a bunch! That worked.