A loop is a way of executing some code repeatedly. There are two main categories of loops:
⇓
- Loops that contain code that we want to do repeatedly forever. (This is not actually all that common.)
- Loops that contain code we want to do some known number of times or until some condition is met.