Repeating with while
A while loop repeats a block of code for as long as its condition stays true, which fits any job where you can't know in advance how many times it will take, as long as something inside the loop lets it end.
Updated

- Category
- JavaScript
- Level
- Novice
- Tags
- Increment Operator (javascript), Infinite Loop (javascript), Iteration, JavaScript, while Loop (javascript)