JavaScript is different from other programming languages by containin both undefined and null values, which may cause confusion.
null is a special value meaning "no value". null is a special object because typeof null returns 'object'.
On the other hand, undefined means that the variable has not been declared, or has not been given a value.
More...
Currently rated 5.0 by 6 people
- Currently 5/5 Stars.
- 1
- 2
- 3
- 4
- 5