STEP 6: Let's make our background change to the beach if the user chooses beach!

Any command that should run only if the test statement is true must be indented inside the if block.

  • Change the string in .say() to "I love going to the beach!"
  • Go to and drag out Summer. Drop it inside the if statement

  • Click Run and type beach into the ask bubble to check your work.

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)