Boolean()
Boolean() is a JavaScript function in the Boolean category. Converts a value to a boolean primitive. The syntax is Boolean(value). A typical example: Boolean(1) // true. A close sibling is Boolean.prototype.toString(), which returns string representation. A close sibling is Boolean.prototype.valueOf(), which returns the primitive value. More about this category: Boolean methods for truth value handling. Related Boolean methods: Boolean.prototype.toString(), Boolean.prototype.valueOf(). This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try Boolean() immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.