JavaScript Number constructor
Example
let num = 134.5;
num.constructor;
// Returns function Number() { [native code] }
Try it Yourself »
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
Number.constructor is fully supported in all browsers:
| Chrome | IE | Edge | Firefox | Safari | Opera |
| Yes | Yes | Yes | Yes | Yes | Yes |
Syntax
number.constructor
Technical Details
| Return Value: | function Number() { [native code] } |
|---|---|
| JavaScript Version: | ECMAScript 1 |

