Stuck on First Move!


#1

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

error message: Oops, try again. Do you want to race Bieber on stage?

// Check if the user is ready to play!
confirm("I'm Ready to Play!")
var age = prompt("How Old are You??")

if(age < 13) {
console.log("You're allowed to Continue on to Play at You're Own Discrection!"); }

else {
console.log("You're Good to Play On!"); }
{
    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

These don't require any { or } since you are just printing and it's not part of any statement.


#3

Took out the extra curly brackets, however still getting the same error message

Error Message:
Oops, try again. Do you want to race Bieber on stage?



// Check if the user is ready to play!
confirm("I'm Ready to Play!")
var age = prompt("How Old are You??")

if(age < 13) {
console.log("You're allowed to Continue on to Play at You're Own Discrection!"); }

else {
console.log("You're Good to Play On!"); }

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


#4

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