Files
developer-roadmap/roadmaps/javascript/content/variable-scopes@7iMJuaB7yKlSIbT4dBe5L.md
Arik Chakma 274082fd77 feat: clean roadmap content and sync scripts (#10181)
* refactor: clean to roadmap content

* refactor: move shared helpers into scripts/lib
2026-07-28 05:45:17 +06:00

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)