Code your own adventure #4


My code is not working, the error message continues to ask if I made the age equal to the prompt, same with the userAnswer.

confirm("Are you ready to play?");

var age = prompt("What's you age?");

if (age < 13) {
    console.log("You are allowed to play but at your own discretion");
else {
    console.log("Have fun");
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?");


did you try after refreshing your browser?


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