Skip to main content
0:00est. 2 min

Section 2 - Execution Contexts and Lexical Environments

Notes

Lesson 6:
- Syntax parser - A program that reads your code and determines what it does and if it's grammar is valid. (Converts js into something which a computer can understand).
- Execution context (A wrapper to help, manage the code that is running) - There are lots of lexical env. Which one is currently running is managed by execution context. It contains thing beyond you have written in your code.
- Lexical Environments (Where something sits physically in the code you write) - Having to do with words or grammars. A lexical env exists in programming languages in which where you write something is important.

Global object - Window/This
This - In global env this refers to window.
Outer environment -