Counting with for

A for loop puts its start, its condition and its step in one line, so counting up, counting down or counting by any step reads at a glance, and break and continue let you stop early or skip a pass.

Updated

Cheat sheet: Counting with for
Category
JavaScript
Level
Novice
Tags
break (javascript), continue (javascript), for Loop (javascript), JavaScript, Loop Counter (javascript)