Show Menu
Cheatography
This is a draft cheat sheet. It is a work in progress and is not finished yet.

Test

Template literal
text ${200 / 100}
Postfix increment
i++
Prefix
++i
Operator precen­dence
Executing a function is called invoking, calling, or applying it.
Array is not empty
array && array.l­ength
Get function parameter (inside function)
argume­nts[0], argume­nts.length
Being able to reference a specific instance of a local binding in an enclosing scopeā€”is called closure. A function that references bindings from local scopes around it is called a closure.

Object

property:
value
"­pro­perty one":
value
if property doesn't exist obj.prop returns undefined
prop in obj return true or false
object.keys()
array of property names
array
arr1 instanceof Array

Object

property:
value
"­pro­perty one":
value
if property doesn't exist obj.prop returns undefined
prop in obj return true or false
object.keys()
array of property names
array
arr1 instanceof Array
 
Array.i­sA­rra­y(arr2)