Please enable JavaScript to use CodeHS

CodeHS Glossary


Loop General

A loop is a way to repeat code in your program. There are while loops, which let us repeat code as long as a condition is true, and for loops, which let us repeat code a fixed number of times.