STEP 13: Our game is almost done! Now we just have to account for when the user guesses incorrectly.

Remember, the else statement is triggered whenever the if statement before it does not run.

  • Change the text inside the .say() within the else block from "I am a sprite." to "Nope, try again.".
  • In drag in Wait to the bottom of your else block.

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)