Easy Tutorial
❮ Prop Email Required Prop Style Textdecorationcolor ❯

JavaScript Boolean Object


Boolean Object

The Boolean object is used to convert a value that is not of the Boolean type into a Boolean type value (true or false).

For a complete tutorial on the Boolean object, please visit JavaScript Boolean Object Tutorial.


Boolean Object Properties

Property Description
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

Method Description
toString() Converts the Boolean value to a string and returns the result.
valueOf() Returns the primitive value of the Boolean object.
❮ Prop Email Required Prop Style Textdecorationcolor ❯