警告:此程序有错误或错误。所以让我们调试它!

规则:我们不需要条件语句中的==来运行它们。我们只需要一个boolean

  • 点击运行并点击控制台查看该choice == "summer"评估为TrueFalse
  • if 条件语句中的变量从is_trueis_correct
  • 点击运行并在询问框中输入“夏天”。完成后,单击提交接下来继续。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)