JavaScript Object Constructors

A constructor is a special function known as Object() that creates and initializes an object instance of a class.

Code :