Uploading… on question 3 it is constantly saying that its wrong !! helpppppp meeeeeeeeeeeeeeeeeeeeeee
Post code
format by selecting it and pressing crtl shift c or by clicking the </> button.
WHAT IM STUCK TOO!!! It’s so hard.
See above (20charss)
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.’”);
}
try (userAnswer === yes)
Its not working dude
There is an Error…Did you remember to console.log("Suddenly, Bieber stops and says. ‘who wants to race me?’ ");
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.’”);
}
confirm? I think it must be “age” (because we defined the var as “age”) not “confirm”.
= 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