Skip to main content
D
JavaScript
JavaScript Let

JavaScript Let

The let keyword declares block-scoped variables that can change.

Read Time
5 min read
Difficulty
Beginner
Last Updated
Jun 15, 2026
Version
v1.0.0

Introduction

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
1/* this uses let */
2let points = 50;
3points = 100; // Value changed successfully

Key Points

  • `let` variables cannot be redeclared.
  • `let` variables can be reassigned.
  • `let` variables have block scope.
  • `let` prevents accidental global variables.

Up Next

Continue your journey with the next topic.

Go to JS Const