Keep geting Oops, try again. Did you declare a variable called userAnswer?


#1


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


Oops, try again. Did you declare a variable called userAnswer?


confirm("I'm ready to play!");
var age = prompt("What's your age");
if(age === 13) { console.log("Play at your own responsability"); }
else { console.log("You're welcome 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 userAnwser = prompt("Do you want to race Bieber on stage?");.


#2

You just have a type, you wrote userAnwser while you wanted to write userAnswer (the w and s are interchanged).


#3

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