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. Description Do not confuse the primitive Boolean values true and false with the true and false values of the Boolean object. Any object whose value is not undefined or null , including a Boolean object whose value is false, evaluates to true when passed to a conditional statement. Do not use a Boolean object to convert a non-boolean value to a boolean value. If you specify any object, including a Boolean object whose value is false, as the initial value of a Boolean object, the new Boolean object has a value of true.