Justin bieber - fix


#1

Hi,

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.");

}


#2

This is the real fixed situation, to pass the exercise you need to put exactly what they've written!

// Check if the user is ready to play!
confirm("I'm ready to play")
var age =prompt("what's your age?")
if(confirm > 13)
{
console.log("We're not responsible for any of your actions on this site")
}
else {
console.log("Welcome to my game")
}
console.log("You are at a Justin Bieber concert, and you hear this lyric 'Lace my shoes off, start racing.'");

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

it didn't work
uydfn fdfjiadshj gfkhdsigh asdzhgvzsdkgv kshgfekszfnksdzl nvkcekskkrgnksd vmc,xnvkndskmzcvkllxn kvnksdm kgvkmkvkdslzv


#4

Mine does....WHat doesnt work, please be more specific.