Code your own adventure #4


#1

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

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?");


#2

did you try after refreshing your browser?


#3

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