PREVIEW: Refactoring is the process of taking a program or piece of code and changing its structure.
What the code does will not change, but our code will be quicker, more organized, and easier to understand and edit later on.
- Click Run and watch the stage. Do you notice any patterns in the code? Any lines that are repeated?
- Use the code in the editor to answer the questions that appear on the stage.