Quick summary: when to use which
`const` — use it by default for values that should not be reassigned. It provides clearer intent and reduces accidental bugs.
`let` — use when you need to reassign, such as loop counters or stateful variables.
`var` — function-scoped and legacy; avoid in modern code unless maintaining old codebases.