On question 3 of code your own adventure


#1

Uploading... on question 3 it is constantly saying that its wrong !! helpppppp meeeeeeeeeeeeeeeeeeeeeee


#2

Post code

format by selecting it and pressing crtl shift c or by clicking the </> button.


#3

WHAT IM STUCK TOO!!! It's so hard.


#4

See above (20charss)


#5

Here is the code that is bugging out...

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

{
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 (userAnswer === no)

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


#6

try (userAnswer === yes)


#7

Its not working dude
There is an Error..Did you remember to console.log("Suddenly, Bieber stops and says. 'who wants to race me?' ");


#8

Finally I got the solution...
// 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.'");
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("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.'");
}


#9

confirm? I think it must be "age" (because we defined the var as "age") not "confirm".


#10

= assigns

=== makes sure it is equal

var shutUP = prompt("Are you the coolest?")

if (shutUP === "yes") {
console.log("Noooooo I am")
}
else {
console.log("You're trippin.")
}

That's where I was stuck on this problem.
Sometimes the code still works either way but remember this is the right
way to do it. Be well