W3Schools.com

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 an 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


WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
Download XML Editor
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE