Section1.15Rule 3) Remove repeated code and logic from conditional branches
Please watch the video to learn about the third rule (removing repeated code from conditional branches) and then answer the following questions. Enlarge the window to view the code examples clearly. If needed, click the settings icon in the video player and set the quality to 1080p for better clarity.
For the code example discussed in the video, applying which of the following rule(s) resulted in removing the repeated code from the conditional branches?