STEP 16: If the player is wrong, we need to let them know that too.

  • In LOGIC, from , drag out Else and drop it indented inside the loop, but outside the if-block.
  • Click GRAPHICS, then . Drag out Say and drop it indented inside the else-block.
  • Assign .say() to bank and change the string to "Try again!"
  • Next drag out Wait so that it is indented in the else-block (should be indented two times!).

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)