请问哪里错了?运行结果怎么总是否定语句console.log("Suddenly,Bieber stops and says,'Who wants to race me?'")var userAnswer = promptprompt("Do you want to race Bieber on stage?")if (userAnswer === "yes"){console.log("You and Bieber sta

来源:学生作业帮助网 编辑:作业帮 时间:2024/04/29 06:14:31
请问哪里错了?运行结果怎么总是否定语句console.log(

请问哪里错了?运行结果怎么总是否定语句console.log("Suddenly,Bieber stops and says,'Who wants to race me?'")var userAnswer = promptprompt("Do you want to race Bieber on stage?")if (userAnswer === "yes"){console.log("You and Bieber sta
请问哪里错了?运行结果怎么总是否定语句
console.log("Suddenly,Bieber stops and says,'Who wants to race me?'")
var userAnswer = prompt
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.'")
}

请问哪里错了?运行结果怎么总是否定语句console.log("Suddenly,Bieber stops and says,'Who wants to race me?'")var userAnswer = promptprompt("Do you want to race Bieber on stage?")if (userAnswer === "yes"){console.log("You and Bieber sta
console.log("Suddenly, Bieber stops and says, 'Who wants to race me?'")
// prompt写了两次
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.'")
}