This is a draft cheat sheet. It is a work in progress and is not finished yet.
Test
Template literal |
|
Postfix increment |
i++ |
Prefix |
++i |
Operator precendence |
|
Executing a function is called invoking, calling, or applying it. |
Array is not empty |
array && array.length |
Get function parameter (inside function) |
arguments[0], arguments.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 |
"property 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 |
"property 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.isArray(arr2) |
|
|
|
|
|