Demo: Prototype

To add a new property to a constructor, you must add it to the constructor function. You cannot add a new property to a constructor function, unless you use JavaScript prototype property that allows you to add new methods to objects constructors dynamically