It keeps saying SyntaxError, Justin Bieber


#1

Here is my script:

confirm("Are you ready to play?");
var age = prompt("What's your age?");
if (age<13)
{
console.log ("You can play but we take no responsibility!")
}
else
{
console.log("Get ready to play!")
}
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

@jchacinjr
The only thing i can see is that you are not using a closing-curly-bracket-}
at the ver end of your code
with which you would close the ELSE code-block.....

In this lesson you should also use the EXACT text's as are mentioned in the Instructions.


#3

The thing is that I'm copying exactly what it says. Well I'm just going to start from the beginning


#4

Already finished it, don't bother to respond.


#5

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