STEP 10: Now let's use the new parameter inside the function!

  • Find the .say() inside the function and replace the string with the variable name.
  • Add + ", you're invited to my party!" after name. Don't forget the + !

Remember, we use + to concatenate two strings. Click Run and notice that the sprite now invites Cadet Codester by name!

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)