JavaScript Variables can be declared in 4 ways:
- Automatically
- Using var
- Using let
- Using const
var:
- Function-scoped
- Can be redeclared and reassigned
let:
- Block-scoped
- Can be reassigned, but not redeclared in the same block
const:
- Block-scoped
- Cannot be reassigned or redeclared