home | O'Reilly's CD bookshelfs | FreeBSD | Linux | Cisco | Cisco Exam  


JavaScript: The Definitive Guide

Previous Chapter 3
Variables and Data Types
Next
 

3.8 Null

The JavaScript keyword null is a special value that indicates "no value." Technically speaking, null is a value of object type, so when a variable holds the value null, you know that it does not contain a valid object or array. For that matter, you also know that it does not contain a valid number, string, Boolean or function.

C and C++ programmers should note that null in JavaScript is not the same as 0 as it is in those languages. In certain circumstances, null will be converted to a 0, but the two are not equivalent.


Previous Home Next
Arrays Book Index Undefined

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell