Justin Beiber hates me help


#1

var userAnswer = prompt "Do you want to race Bieber on stage?"
if (userAnswer === "yes")
{
console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace!");
}
else;
{
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.'");
}


#2

this works:

// Check if the user is ready to play!

confirm("I am ready to play")

var age = prompt("what's your age")

if (age < 13){

console.log("you are allowed to play but be careful")
}

else{
console.log("Please continue this way")
}

console.log('Batman glares at you.');

var userAnswer = prompt("Are you feeling lucky, punk?");

if (userAnswer === 'yes') {
console.log("You and Bieber start racing. It's neck and neck! You win by a shoelace");
}

else {
console.log("Oh no! Bieber shakes his head and sings 'I set a pace, so I can race without pacing.");

}


#3

Thanks alot
I was stuck on that for so long.


#4

For if you didn't know what you did wrong in your code:

var userAnswer = prompt "Do you want to race Bieber on stage?"

You forgot the parentheses, should've been:

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