挑战 8 :帮助精灵学习你的名字!使用询问命令,以便精灵可以接受用户输入。

  • 并拖出Ask
  • 确保.ask().say()命令之前。
  • choice更改为name
  • 更改字符串"Yes or no?" "What's your name?" .

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)