# 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)