JavaScript & jQuery Tutorials

JS Home Right Arrow JS Reference Right Arrow RegExp Right Arrow constructor

constructor  RegExp  instance property

Description

Returns a reference to the function that created the prototype.

Syntax


Signature Description
aRegExp.constructorReturns 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);

Press the button below to action the above code:

Related Tutorials

JavaScript Intermediate Tutorials - Lesson 9 - Regular Expressions



  

go to home page Homepage go to top of page Top