Using Prototype Objects
This lesson teaches us how to add properties and methods to an object prototype.
We'll cover the following...
Adding Properties
In this lesson, we will look at how to add properties to the prototype object of a constructor function.
Syntax
Here is how properties can be added to a constructor function using the prototype property:
Press + to interact
ConstructorFunctionName.prototype.PropertyName = PropertyValue
Since the property is being defined on the prototype of the ...