boolean (JavaScript 1.1)

The Boolean object is an object wrapper for a boolean value.

Properties & Events

KeyDescriptionAvailability
constructorSpecifies the function that creates the Boolean prototype.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0
prototypeRepresents the Boolean prototype object.
chrome 1.0safari 1.0Firefox 1.0ie 4.0opera 7.0

Result from the Online TryIt-Editor
chrome 1.0safari 1.0Firefox 1.0ie 3.0opera 4.0

Examples having uses of: 'boolean'

0 votes
1k views

JavaScript Boolean Object

The Boolean object is used to convert a non-Boolean value to a Boolean value (true or false).