STEP 12: Just like other values, return values need to be stored in a variable.

When we use a return statement, we always store the result of the function call in a return variable.

  • Go to and drag Return Variable into your program OUTSIDE the function.
  • Change the function name to pig_latin.
  • Type "hello" inside the parenthesis to pass it to the function.

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)