The type null has exactly one value, called null.
You can use this value when testing for the undefined state of variables and objects in browsers that do not support an explicit undefined value, to test for in logical expressions.
See also: | Cast operator, Special type, Type |
ECMA 262 edition 2 - section - 4.3.12
ECMA 262 edition 2 - section - 8.2
ECMA 262 edition 3 - section - 4.3.12
ECMA 262 edition 3 - section - 8.2
Wrox Instant JavaScript - page - 14
Prev | Home | Next |
null | Up | Null literal |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |