I need help , that Bieber concert code


#1

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

This is the code ... and for some reason i experience the ( Oops, try again. Did you add an if statement to your code? ) error. Help plz..


#2

Is this all of your code?

I miss many lines of code before what you show us.


#3

Nvm. i just solved the issue. Thanks btw


#4

How did you resolve this? I'm getting the same error.


#5

Without any code we didnt can help you


#6

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

i am facing this error (Oops, try again. Did you add an if statement to your code? )
can you plz help me?


#7

On which stage do you hang?


#8

if i succesfully complete this chapter and sign out.
but next time whenever i sign in get this program again....


#9

This Code works and everything is fine BUT where is your code from the stages before?
It looks like you delete it?!

There must be a if else before your second if else


#10

I also see the same problem.help plz