| Boolean ObjectThe Boolean object is an object wrapper for a boolean (true or false) value. You can explicitly define a Boolean via: new Boolean([value]) 1) Value- Initial value of the Boolean object. The value is converted to a boolean value, if necessary. If value is not specified, 0, -0, null, false, NaN, undefined, or the empty string (""), the object is set to false. All other values, including any object or the string "false", create an object with a value of true. For example: var guess=new Boolean(false) //false value Properties
Methods
| ||||||||||||||||||
|