Boolean() constructor

The Boolean() constructor is used to create Boolean objects.

Syntax

new Boolean([value])

Parameters

value Optional
The initial value of the Boolean object.

Specifications

Specification
ECMAScript Latest Draft (ECMA-262)
The definition of 'Boolean constructor' in that specification.

Browser compatibility

Update compatibility data on GitHub
DesktopMobileServer
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung InternetNode.js
Boolean() constructorChrome Full support 1Edge Full support 12Firefox Full support 1IE Full support 3Opera Full support YesSafari Full support 1WebView Android Full support 1Chrome Android Full support 18Firefox Android Full support 4Opera Android Full support YesSafari iOS Full support 1Samsung Internet Android Full support 1.0nodejs Full support Yes

Legend

Full support  
Full support

See also