JavaScript Number constructor
❮
Number Reference
❯
Definition and Usage
The constructor
property returns the function that created the Number prototype.
For JavaScript numbers the constructor
property returns:
function Number() { [native code] }
Browser Support
constructor
is an ECMAScript1 (ES1) feature.
ES1 (JavaScript 1997) is fully supported in all browsers:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
number.constructor
Return Value
function Number() { [native code] } |
❮
Number Reference
❯