第7步:改变字符串,让精灵说我们想要的!

空格不会自动添加到字符串的开头或结尾! 我们需要在最后添加一个变量,所以还需要确保在字符串中最后一个字母之后有一个空格。

  • .say() 指令中的字符串更改为 "My friend's favorite color is "

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)