let
Term side of the Card
Topic: Syntax
Unit title: let
Categories: Syntax, Keyword
Explanation side of the Card
Explanation: The keyword used to declare variables with block scope, meaning the variable is only accessible within the block in which it's defined. Unlike `var`, variables declared with `let` cannot be re-declared in the same scope.
Browser compatibility:
- The chrome browser supports this feature starting from version 49
- The edge browser supports this feature starting from version 14
- The firefox browser supports this feature starting from version 44
- The safari browser supports this feature starting from version 10
Availability: