First Move


#1

// Check if the user is ready to play!
confirm("Ready?");
var age = prompt("What's your age");
if(age < 13) {
console.log("You can play with your own risk");
} else {
console.log("That's okay.You can 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 userAnswer = prompt ("Do you want to race Bieber on stage?". );

its saying syntax error. where's the error?


#2

last line:

var userAnswer = prompt ("Do you want to race Bieber on stage?". );

there is . after you string, causing trouble


#3

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