A for loop combines initialization, condition, and update in one line:
for (let i = 0; i < 5; i++) {
console.log(i)
}
// Prints: 0, 1, 2, 3, 4
The parts are:
let i = 0 - runs once at the start
i < 5 - checked before each iteration
i++ - runs after each iteration
This is the most common loop for counting.