Inside JavaScript’s Mind: Lexical Environments and Scope Chains
Have you ever thought how JavaScript knows which variable you're referring to, even when it's not defined in your current function? How does JS decide where to look next when something is missing?
The answer lies deep within JavaScript’s core archite...
kmanoj.hashnode.dev4 min read