This demo uses a constructor function as an object template to create two different objects with the same properties and method.
Output: