IT lexicon Programming Loop

Loop

Programming På svenska → Updated: 2026-05-24

Construct that repeats code until a condition is met — for, while, forEach.

The foundation of imperative programming. Risk: infinite loops (forgot to update the counter). Functional alternatives: map, filter, reduce — express "what" instead of "how".

← Back to the lexicon