A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/javascript/Boolean/constructor below:

constructor · WebPlatform Docs

constructor Summary

Initializes a Boolean object.

Syntax
boolean.constructor([ value ])
boolean
Required. The name of the Boolean object being created
value
Optional. Specifies the value of the Boolean object. This can be the numbers 1 or 0, or the strings “true” or "false".
Examples

The following example illustrates the use of the constructor property.

var x = new Boolean("true");
 if (x.constructor == Boolean)
     document.write("Object is a Boolelan.");

 
 
Remarks

The constructor property contains a reference to the function that constructs instances of the Boolean object.

See also Specification

15.6 Boolean Objects ECMAScript® Language Specification Standard ECMA-262 5.1 Edition / June 2011

Attributions

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4