Our Recommendation for You Search your Query, You can find easily. for example search by book name or course name or any other which is related to your education

label name

PHP

JS Boolean

JavaScript Boolean ReferenceJAVASCRIPT


JavaScript Booleans

JavaScript booleans can have one of two values: true or false.

The Boolean() FunctionJAVASCRIPT

You can use the Boolean() function to find out if an expression is true:

Example

Boolean(10 > 9)       // returns true
Or even easier:

Example

(10 > 9)              // also returns true10 > 9                // also returns true
For a tutorial about booleans, read our JavaScript Boolean Tutorial.

Boolean PropertiesJAVASCRIPT

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

Boolean MethodsJAVASCRIPT

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