Scope in JS
Scope determines:
Where a variable is accessible
Where it is visible
Where it can be modified
In JavaScript, scope is resolved lexically (at write time, not runtime).
Types of Scope in JavaScript
JavaScript has three main scopes:
Scope TypeC...
js-fundamentals.hashnode.dev3 min read