STEP 7: Let's change the string so our sprite says what we want!

Spaces are not automatically added to the beginning or end of a string! Since we're going to add a variable to the end, we need to make sure there's a space after the last letter in our string.

  • Change the string in the .say() command to "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
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)