The Null Type : Introdunction : Number Data Type JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Number Data Type » Introdunction »

 

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.





HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Number Data Type
» Introdunction