JavaScript constructor Property: Number Object
Description
The constructor property of the number object specifies the function that creates an object's prototype.
Version
Implemented in JavaScript 1.1
Syntax
Number.constructor
Number: The name of the object (Required)
Example:
In the following web document, the constructor property returns the reference to the function that creates the object.
View the example in the browser
Online Practice EditorSupported Browser
Internet Explorer 7 | Firefox 3.6 | Google Chrome 7 | Safari 5.0.1 | Opera 10 |
Yes | Yes | Yes | Yes | Yes |
See also:
JavaScript Core objects, methods, properties.
Previous: Javascript Number Objects - Properties and Methods
Next:
JavaScript MAX_VALUE Property: Number Object
Test your Programming skills with w3resource's quiz.