CHECK FOR UNDERSTANDING: Review what you learned about refactoring with loops and variables.

  • Click Run and watch the series of stars appearing behind the UFO.
  • Answer the questions by clicking the correct choice on the stage.

The un-refactored version of the code is at the bottom of the code editor, commented out.

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)