Did you remember to put the yes answer option?


// Check if the user is ready to play!
confirm("Are you ready to play?");
var age = prompt("What is your age?");
if (age < 13) {
console.log("You may play, but under your own responsability");
else {
console.log("Start game!!");
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?");
console.log("You and Bieber start racing.It's neck and neck! You win by sholace!");
else {
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");

I have looked everywhere, similar errors to mine, but I just cant find what is wrong with my code, and its driving me nuts!! can someone tell me where exacly am I wrong here? Thank you in advance!


can you please give me the lesson link?
seems your code is fine.


In your if statement, the roles are basically reversed. If they're younger than thirteen, it will result to true, but they shouldn't be able to play. Only those that are older than 13 are elgible.

How could you go about making it to where they can only play if they're older than 13?


No, the numbers are actually right, lol.
It's just typos. :slight_smile:

this string needs to be "You and Bieber start racing. It's neck and neck! You win by a shoelace!"


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