STEP 4: Let's use the variable named my_friend that is storing the string "Mike"!

Remember, we don't put quotes around variable names. Even though the value of this variable is a string, its name is NOT a string.

  • In the .say() command, change the string "Jacob" to the variable name my_friend.
  • Predict: What do you think the sprite will say? Click Run to see if you are 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
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)