🚧 under construction
JS ⟩ concepts ⟩ scope ⟩ lexical environment ⟩ environment record
an object that is part of a "lexical environment", it stores:
all local variable(s) as its properties.
other information like the value of this.
📗 JS.info ⟩ Lexical Environmentarrow-up-right
Lexical Environments (linked together)
Environment Record Hierarchy (object graph)
A "variable" is just a property of the environment record (associated with the currently executing block /function /module /script).
❗"this" determined on call site❗️
YDKJS: Scope & Closures (v.2) ⟩ Ch. 1
JS.info ⟩ Lexical Environmentarrow-up-right
JS spec ⟩ The Environment Record Type Hierarchyarrow-up-right ⭐️
Last updated 3 years ago