• 在循环内部和if-else语句外部,当每次循环运行时,使用 Add Valuex 添加 40
  • 在循环外部,检查 if guess 符合 code
  • 如果符合的话,让你的精灵 say 符合并创建一个精灵作为奖品。
  • 创建一个名为 statusString Variable ,值为 "true!"
  • 使用 Return Statement 并返回 status

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)