mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2026-10-25 17:42:27 +08:00
* refactor: clean to roadmap content * refactor: move shared helpers into scripts/lib
10 lines
689 B
Markdown
10 lines
689 B
Markdown
# Variable Scopes
|
|
|
|
Scope determines where in a program a variable is accessible. JavaScript has three main scope levels: global, function, and block. Understanding scope is important for avoiding naming conflicts and unintended variable access.
|
|
|
|
Visit the following resources to learn more:
|
|
|
|
- [@article@Scope](https://developer.mozilla.org/en-US/docs/Glossary/Scope)
|
|
- [@article@Deep dive into Scope Chains and Closures](https://www.freecodecamp.org/news/deep-dive-into-scope-chains-and-closures-21ee18b71dd9/)
|
|
- [@article@JavaScript Scope](https://www.w3schools.com/js/js_scope.asp)
|
|
- [@video@Understanding Global Local Function Block Scope](https://www.youtube.com/watch?v=_E96W6ivHng) |