Loops and Iteration
Choose an iteration form by intent and prove that state advances toward termination.
Lesson introduction
Loops repeat a defined operation. The collection, current item, state transition, and exit condition should be visible enough to trace on paper.
Where this fits
This lesson builds one part of the path from language fundamentals to complete browser applications.
What you will build
Scan lesson records, skip invalid durations, and return the first lesson above a limit.
You will first study the underlying rule, then trace worked code, repair a mistake, and create an independent solution.