UK [kənˈstrʌktə(r)] US [kən'strʌktə]

n.Constructor

Plural: constructors

javascript constructor attribute syntax

What does the constructor attribute mean?

The constructor exists in the prototype attribute of each function. The constructor attribute returns a reference to the array function that created this object.

Function:Returns a reference to the array function that created this object.

Syntax:object.constructor

Description:The constructor property returns a reference to the array function that created this object.

Comments:None

javascript constructor attribute example

    

Run instance »

Click the "Run instance" button to view the online instance