STEP 6: Time to call and build the add() function!

  • From drop if at the very BOTTOM of your code.
  • Change the test variable from choice to operation and the test value from "yes" to "a".
  • From drop Function Call inside the if- block and change the function name to add().

Run the code and enter a in the ask popup. We need to add more code inside add() to make something happen!

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)