The Boolean object is an object wrapper for a boolean value.
Parameters value The initial value of the Boolean object.
The value is converted to a boolean value, if necessary. When a Boolean object is used as the condition in a conditional test, JavaScript returns the value of the Boolean object. For example, a Boolean object whose value is false is treated as the primitive value false, and a Boolean object whose value is true is treated as the primitive value true in conditional tests. If the Boolean object is a false object, the conditional statement evaluates to false . Property Summary Property Description constructor Specifies the function that creates an object's prototype.