This is a draft cheat sheet. It is a work in progress and is not finished yet.
Big Words
Syntax Parser |
A programm that reads your code and determine what it does and if its grammar is valid. |
Lexical Environnement |
Where Something sits physically in the code you write and what it surrounds |
Single Threaded
One command at a time |
Under the hood of the browser, maybe not |
Synchronous
One at a time |
And in Order |
One line of code executed at a time, in the order it appears.
|
|
The Global Environnement and Global Object
Execution Context |
A wrapper to help manage the code that is running.There are lots of lexical environnements.Which one is currently running is managed via execution contexts. It can contain things beyond what you've written in your code. |
Object |
A collection of name value pairs |
Execution Context(Global) |
Creates a Global Object and 'this'. In the browser both refer to the 'window' object. Global Object = this = window |
Global |
Not inside a function |
EC - Creation Phase |
Global Object, 'this', Outer Environnement & HOISTING -> Setup memory space for variables and functions |
Variables |
Are all initially set to undefined |
|
|
|
|
|