I want to know what the difference is between null and undefined in JavaScript.
null
undefined
null is a special value meaning "no value". null is a special object because typeof null returns 'object'.
typeof null
On the other hand, undefined means that the variable has not been declared, or has not been given a value.