constructor Boolean instance propertyS2C Home
« Globals « Boolean « constructor
Description
Returns a reference to the function that created the prototype.
Syntax
| Signature | Description |
|---|---|
anBoolean.constructor | Returns a reference to the function that created the prototype. |
Parameters
None.
Examples
The code below displays prototype function of Boolean.
var anEmptyBoolean = [];
alert('Boolean constructor is ' + anEmptyBoolean.constructor);
Related Tutorials
JavaScript Basic Tutorials - Lesson 9 - Booleans