Scopes are an intriguing concept but very important to understand as it explains the inner working of JS. Scope is the current context of execution in which values and expressions are 'visible' or can be referenced. Scopes can also be layered in a hierarchy, so that child scopes have access to parent scopes, but not vice βοΈ Scope Chaining.
Table of contents
π What is Scope ?β¨ Types of Scopeπ±βπ Lexical ScopeβοΈ Scope ChainingIn the end, I would like to say that scopes in JS are indeed an intriguing concept but very important to understand as it explains the inner working of JS.πππHappy CodingπππSort: