|-||myBoolean = new Boolean()|
|-||myBoolean = new Boolean(aValue)|
|Argument List||BooleanValue||A Boolean value (either true or false)|
|aValue||A value to be converted to a Boolean object.|
|Object properties:||constructor, prototype|
|Object methods:||toSource(), toString(), valueOf()|
An instance of the class "Boolean" is created by using the new operator on the Boolean() constructor. The new object adopts the behavior of the built-in Boolean prototype object through the prototype-inheritance mechanisms.
All properties and methods of the prototype are available as if they were part of the new instance.
A Boolean object is a member of the type object and is an instance of the built-in Boolean object.
Cloning the built-in Boolean object creates Boolean objects is done by calling the Boolean() constructor with the new operator. For example:
myBoolean = new Boolean(true);
A Boolean object can be coerced into a Boolean value and can be used anywhere that a Boolean value would be expected.
Programmers familiar with object-oriented techniques may be happy to use the Boolean object, while procedural language programmers may prefer to implement the same functionality with a Boolean value instead.
The prototype for the Boolean prototype object is the Object prototype object.
ECMA 262 edition 2 - section - 4.3.15
ECMA 262 edition 2 - section - 10.1.5
ECMA 262 edition 2 - section - 15.6
ECMA 262 edition 3 - section - 4.3.15
ECMA 262 edition 3 - section - 15.6