Scope - jellyfish-tom/TIL GitHub Wiki
[SOURCES]
http://javascriptissexy.com/understanding-es2015-in-depth-part-1-block-scope-with-let-and-const/
The term scope describes an area in which variables and functions, or identifiers, can be accessed.
JS have 3 kinds of scopes:
- global
- functional
- block
Conditional expressions, such as if, for, and while statements, all use blocks to execute statements based on certain conditions.