CHECK FOR UNDERSTANDING: Take a moment to review what you learned about refactoring with loops.

  • Click Run to watch the UFO draw a star using a for loop.
  • Use the code in the editor to answer the questions
  • 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)