First Move


#1



Replace this line with your code.


#2

Please write your code here, with your problem.


#3

// Check if the user is ready to play!
("Ready to begin?");
confirm("Yes, begin!");
var age=prompt ("How old are you");
if(age<=13) {
console.log("Player is allowed to play but not responsible for player");
} else {
console.log("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?");
if(userAnswer="yes") {
console.log("Lets's race!");
} else {
console.log("No way");
}
// It says that there is a syntax error.


#4

Write this line:
confirm("Ready to begin?")

instead of :


#5

@c_anitra,

You are missing an apostrophe (') at console.log("Suddenly, Bieber stops and says, 'Who wants to race me?");.


#6

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