STEP 8: Now let's have our student say its friend's favorite color!

Be sure you keep the parentheses around the string and the variable name. Don't put quotes around the variable!

  • Add a plus sign + after the string "My friend's favorite color is ".
  • Then add the variable name fav_color after the plus sign +.

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)