A developer is reviewing a code that was written by a colleague. It runs fine, but there are many lines of code to do a seemingly simple task repeatedly. Which action organizes the code?
- Refactor the code by removing any unnecessary tests.
- Reverse engineer and rewrite the code logic.
- Using functions, rewrite any pieces of code that are repeated.
- Modify the code to use loops.
Reveal Solution Next Question