The story heats up!


#1

I want to know what is wrong with my code and why.

var userAnswer = prompt("Do you want to race Bieber on stage?");
if (userAnswer === "yes")
{console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'")}
else {
console.log("they're allowed to play but you take no responsibility.")
}


#2

the flow is kinda wrong, it should be like this

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")
{


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.