JavaScript constructor property
Examples
Returns Number function that created this object reference:
num.constructor;
Output:
function Number() { [native code] }
try it"
Definition and Usage
constructor property returns a Boolean function to create this object reference.
Browser Support
All major browsers support constructor property.
grammar
number.constructor
technical details
return value: | Function object that created this object reference Number functions |
---|---|
JavaScript version: | 1.1 |