The Boolean object represents two values:
"true" or "false".
Syntax for creating a Boolean object:
var myBool=new Boolean(value)
Boolean Object Properties
Constructor Returns a reference to the Boolean function
that created the object
Prototype Allows you to add properties and methods to the
object
Boolean Object Methods
toSource() Returns the source code of the object
toString() Converts a Boolean value to a string and
returns the result
valueOf() Returns the primitive value of a Boolean object
No comments:
Post a Comment