JavaScript constructorProperty
Examples
Returns a reference to the Number function that created this object:
num.constructor;
Output:
function Number() { [native code] }
Try it Yourself »
Definition and Usage
The constructor property returns a reference to the Boolean function that created this object.
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the constructor property.
Syntax
number.constructor
Technical Details
| Return value: | Function object. A reference to the Number function that created this object. |
|---|---|
| JavaScript Version: | 1.1 |
Other Extensions
JavaScript Number Object