# 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.

![Cheat sheet: Counting with for](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/10/f119d3dd9c2d40d285561072fbf9219d.webp)

- Category: JavaScript
- Level: Novice
- Tags: break (javascript), continue (javascript), for Loop (javascript), JavaScript, Loop Counter (javascript)
- Updated: November 1, 2026

Source: https://www.ask-codey.com/cheat-sheets/javascript-loops-for-cheat-sheet
