Show Menu
Cheatography

Javascript - Weird Parts Cheat Sheet (DRAFT) by

Understanding Javascript

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 Enviro­nnement
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

Synchr­onous

One at a time
And in Order
One line of code executed at a time, in the order it appears.
 

The Global Enviro­nnement and Global Object

Execution Context
A wrapper to help manage the code that is runnin­­g.­­There are lots of lexical enviro­­nn­e­m­en­­ts.W­­hich 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 Contex­t(G­lobal)
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 Enviro­­nn­ement & HOIS­TING -> Setup memory space for variables and functions
Variables
Are all initially set to undefined