请问哪里错了?运行结果怎么总是否定语句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/08/24 12:10:35
![请问哪里错了?运行结果怎么总是否定语句console.log(](/uploads/image/z/12168826-34-6.jpg?t=%E8%AF%B7%E9%97%AE%E5%93%AA%E9%87%8C%E9%94%99%E4%BA%86%3F%E8%BF%90%E8%A1%8C%E7%BB%93%E6%9E%9C%E6%80%8E%E4%B9%88%E6%80%BB%E6%98%AF%E5%90%A6%E5%AE%9A%E8%AF%AD%E5%8F%A5console.log%28%22Suddenly%2CBieber+stops+and+says%2C%27Who+wants+to+race+me%3F%27%22%29var+userAnswer+%3D+promptprompt%28%22Do+you+want+to+race+Bieber+on+stage%3F%22%29if+%28userAnswer+%3D%3D%3D+%22yes%22%29%7Bconsole.log%28%22You+and+Bieber+sta)
请问哪里错了?运行结果怎么总是否定语句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.'")
}