JavaScript
JavaScript LetJavaScript Let
The let keyword declares block-scoped variables that can change.
Read Time
5 min readDifficulty
BeginnerLast Updated
Jun 15, 2026Version
v1.0.0Introduction
JavaScript introduced `let` in 2015 to solve problems with older variable types. Variables declared with `let` only exist inside the specific block of code where they were created. Developers can update their values later.
Example
Example
Key Points
- `let` variables cannot be redeclared.
- `let` variables can be reassigned.
- `let` variables have block scope.
- `let` prevents accidental global variables.