JavaScript Object Constructors
A JavaScript object constructor is a function used to create objects from a blueprint/template. The constructor have properties and methods that every object created from it will inherit. Objects are created using the “new” operator. Output: {“firstName”:”John”,”lastName”:”Doe”,”age”:50}