JavaScript Boolean valueOf()
Description
valueOf()
returns the primitive value of a boolean.
valueOf()
is usually called by
JavaScript behind the scenes, and not explicitly in code.
Syntax
boolean.valueOf()
Return Value
Type | Description |
A boolean | true or false . |
Browser Support
valueOf()
is an ECMAScript1 (JavaScriopt 1997) feature.
It is supported in all browsers:
Chrome | Edge | Firefox | Safari | Opera | IE |
Yes | Yes | Yes | Yes | Yes | Yes |