Skip to content

Latest commit

 

History

History
5 lines (5 loc) · 490 Bytes

Lexical environment.md

File metadata and controls

5 lines (5 loc) · 490 Bytes
  • describe how things work. We can't get this object in our code and manipulate it directly.
  • Lexical environment consists of two parts
    • Environment Record an object that stores all local variables as its properties (and other information like value of this).
    • a reference to the outer lexical environment.

[!INFO] A variable is just a property of the special internal object Environment Record. To get or change a variable means to get or change a property of that object.