7.10 Boolean Object

The Boolean object creates a new Boolean value.
Methods & Properties
See JScript Object methods and properties.
Syntax
var variablename = new Boolean(boolvalue)
Arguments
boolvalue
The initital Boolean value for the new object. If this value is omitted, or is False, 0, Null, NaN, or an empty string, the initial value of the Boolean object is False. Otherwise, the initial value is True. Optional.
Remarks
The Boolean object is a wrapper for the Boolean data type. JScript implicitly uses the Boolean object whenever a Boolean data type is converted to a Boolean object.
You rarely call the Boolean object explicitly.
Copyright © 2000 Chili!Soft
|