STEP 9: Our new if statement is not done yet. Let's fininsh the test line and set up our second possible response!

  • Change the test value from the string "yes" to the integer 2.
  • Change the string in the new .say() to "Outcome unclear. Ask again later."
  • Test your if statement by clicking Run until choice equals 2. The wizard should say, "Outcome unclear. Ask again later."

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)