STEP 4: Let's use the function we've created! We will replace some existing code with the function call.

All the code that is between the comments is going to be replaced by a function call.

  • Delete all the code between the two comments you added. DON'T delete the comments!
  • In LOGIC From drop Function Call between the two comments.
  • Change the name in the function call to prowl() and click Run. 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)