Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

difference between undefined and null?

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.
 
PREVIOUS NEXT
Tagged: #difference #undefined
ADD COMMENT
Topic
Name
5+9 =