Not sure what I did wrong on "The Story Heats Up"


#1


https://www.codecademy.com/en/courses/javascript-beginner-en-x9DnD/0/5?curriculum_id=506324b3a7dffd00020bf661


I can't seem to figure out where I went wrong with this code, it keeps saying
"SyntaxError: Unterminated string constant"
Can any of you let me know what I did wrong? Thanks


confirm("I am ready for my adventure!");
var age = prompt("So, how old are you?");
if (age < 13)
{
    console.log("You're not old enough to play!");
}
else
{
    console.log("Ok we can start the game 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?'")
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.'");
}


#2

var userAnswer = prompt("Do you want to race Bieber on stage?);

you forgot to close " "


#3

Oh wow something so simple. Thanks for the help, really appreciate it!


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.