STEP 6: Let's add code to set up our sprite to say their friend's favorite color.

  • Go to and drag out Wait. Drop it at the bottom of your program.
  • In , drag out Say and drop it at the bottom of your program.
  • Assign .say() to student by changing the variable name in front of .say() to student.

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)