undefined
means that a variable has not been declared, or it has been declared but has not yet been assigned a value.null
is an assignment value that means “no value”. Javascript itself never sets a value to null
typeof
:undefined
is not a valid JSON while null
is.null
:undefined
:true
and identity returns false
) :