Please enable JavaScript.
Coggle requires JavaScript to display documents.
Javascript (Behaviors (Single Threaded, Synchronous, Dynamic Typing, No…
Javascript
Behaviors
Single Threaded
Synchronous
Dynamic Typing
No namespace
(use object to fake it)
First class functions
Assign/Pass by Value
(for Primitive)
Assign/Pass by Ref
(for Objects)
Execution Context
Phases
Creation Phase
hoisting
Function Setup
Variable setup (set vars to undefined)
Execution Phase
this
Code
Other Environment
Main / Global Object (window)
arguments
(for functions)
Primitive Types
undefined
null
boolean
number (floating)
string
symbol
Functions
arguments / spread
Function Statement
Function Expression
Immediately Invoke
Function Expression
Coercion
1 + '2' (num 1 to str)
2 / '1' (str '1' to num)
false < 1 ('false'->num)
Built-In Functions
JSON.stringify()
JSON.parse()
Array()