Cheat Flashcards
Interger
Value , type of value
Pi
Operators
NaN
Types
Unicode
Unary operators
typeof
Binary operators
Take 2 values
NaN is not equal to NaN
Result of nonsensical computation and therefore not equal to result of any other nonsensical computation
Ternary
Operating on 3 values
undefined / null
No meaningful result
Expression
Fragment of code that produces a result
Result of prompt is always string
Number.isNaN(theNumber)
Function expression vs function declaration
Arrow function
No parentheses when only one param. No braces if body is single expression
Give function parameter default value
Side effect
Closure
Call stack
in operator in objects
object.keys()
object.assign(objectA, objectB)
Copies properties from one object to the other