Table of contents
- 1. Summary
- 2. Description
- 3. Properties
- 4. Methods
Summary
Represents the prototype for the Boolean constructor.
Description
Boolean instances inherit from Boolean.prototype. You can use the constructor's prototype object to add properties or methods to all Boolean instances.
Properties
constructor- Returns the function that created an instance's prototype. This is the
Booleanfunction by default.
Methods
- toSource
- Returns a string containing the source of the
Booleanobject; you can use this string to create an equivalent object. Overrides theObject.prototype.toSourcemethod.
toString- Returns a string of either "true" or "false" depending upon the value of the object. Overrides the
Object.prototype.toStringmethod.
valueOf- Returns the primitive value of the
Booleanobject. Overrides theObject.prototype.valueOfmethod.
Methods inherited from
Object:__defineGetter__, __defineSetter__, hasOwnProperty, isPrototypeOf, __lookupGetter__, __lookupSetter__, __noSuchMethod__, propertyIsEnumerable, toLocaleString, unwatch, watch