5. 1. 9. The Null Type |
|
The Null type, has only the special value null. |
NUll is also its literal. |
The value undefined is actually a derivative of the value null, so JavaScript defines them as equal to each other. |
alert(null == undefined); //outputs "true"
|
|
Undefined is the value assigned when a variable is declared and not initialized. |
Null is the value used to represent an object that doesn't exist. |