Demystifying Lexical Scope in JavaScript
Scope is a fancy word for what data is available to me at any line of code
Lexical scope, in simple terms, is all about where you declare your functions. This choice determines which data a function can access when it's executed
To illustrate this co...
samyscode.hashnode.dev2 min read