HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

JavaScript Boolean Object


Boolean Object

The Boolean object is used to convert a non-Boolean value to a Boolean value (true or false).

For a tutorial about the Boolean object, read our JavaScript Boolean Object tutorial.


Boolean Object Properties

Property Description
constructor Returns the function that created the Boolean object's prototype
prototype Allows you to add properties and methods to a Boolean object

Boolean Object Methods

Method Description
toString() Converts a Boolean value to a string, and returns the result
valueOf() Returns the primitive value of a Boolean object


Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE