Count down by starting high and decrementing:
for (let i = 5; i > 0; i--) {
console.log(i)
}
// Prints: 5, 4, 3, 2, 1
Or use different step sizes:
for (let i = 0; i < 10; i += 2) {
console.log(i)
}
// Prints: 0, 2, 4, 6, 8
The update expression can be any change that eventually makes the condition false.