A constructor function in JavaScript is a special type of function that is used to create and initialize objects. It serves as a blueprint for creating objects of a specific type or class.
- Constructor functions are functions that are used to create objects with shared properties and behaviours. They are typically named with an initial capital letter and are used in conjunction with the `new` keyword to create instances of objects.
 - Constructor functions are used to create and initialize objects. They serve as blueprints or templates for creating instances of objects with similar properties and behaviours.
 - Constructor functions are often used to define custom data types or classes in JavaScript, especially in the context of object-oriented programming.
 - Unlike object literal by using the constructor function we can define the shape of an object — the set of methods and the properties it can have — and then create as many objects as we like