Boolean (logical) objects are used to convert non-logical values into logical values (true or false).
Create a Boolean object
Use the keyword new to define a Boolean object. The following code defines a logical object named myBoolean:
var myBoolean=new Boolean()
Note: If the logical object has no initial value or its value is 0, -0, null , "", false, undefined or NaN, then the value of the object is false. Otherwise, its value is true (even when the argument is the string "false")!
All lines of code below create Boolean objects with an initial value of false.