In JavaScript, a constructor function is used to create objects . For example, // constructor function function Person () { this.name = ‘John’, this. age = 23 } // create an object const person = new Person(); In the above example, function Person() is an object constructor function.
Read more