STEP 6: 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 four comments you added. Don't delete the comments!
  • In add Function Call between the TWO sets of comments and use them to call prowl().
  • Click Run. Notice that 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)