🔰scope chain
JS ⟩ concepts ⟩ scope ⟩ scope chain
The scope of a code block can reach all its parent's lexical environment so it can use its parent’s variable(s). In this way, we have a scope chain, chain of all parent’s scope.
Last updated
JS ⟩ concepts ⟩ scope ⟩ scope chain
The scope of a code block can reach all its parent's lexical environment so it can use its parent’s variable(s). In this way, we have a scope chain, chain of all parent’s scope.
Last updated