STEP 4: Time to refactor the rest of the program!

  • Look in the code and find the remaining blocks of code that are cheering different strings.
  • REPLACE each block with a function call for cheer() with the correct string value! Hint: Use the strings "codesters", "go", and "code".
  • Click Run. Our code is more efficient and readable, but the outcome of the program is the same!

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)