constructor
RegExp
instance property
JS Home <<
JS Reference <<
RegExp <<
constructor
Description
Returns a reference to the function that created the prototype.
Syntax
Signature | Description |
---|---|
aRegExp.constructor | Returns a reference to the function that created the prototype. |
Parameters
None.
Examples
The code below displays prototype function of RegExp
.
var aRegExp = /\d/;
alert('RegExp constructor is ' + aRegExp.constructor);
Related Tutorials
JavaScript Intermediate Tutorials - Lesson 9 - Regular Expressions