PREVIEW: Refactoring is the process of taking a program or piece of code and making it more efficient, organized, and readable. The outcome of the program does not change, only the program's structure changes! Refactoring can involve reordering lines of code, creating loops or functions and more!

  • Click Run and watch the stage. Then look at the code in the editor below.
  • Use the code in the editor to answer the questions that appear on the stage.

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)