Understanding the execution order prevents bugs:
for (let i = 0; i < 3; i++) {
console.log(i)
}
Execution:
let i = 0 (once)
Check i < 3 → true
Run body: log
i++ → i is
Check i < 3 → true
Run body: log
...continues until i < 3 is false