Inheritance

The object being inherited from is known as the prototype.
The inherited properties can be found in the 'prototype' object of the constructor


Prototype Chain ?


You can add a property to a previously defined object by using the 'prototype' property.


myObject.prototype.Property6 = null; 
obj1.Property6 = 'some text'




© 2020 Better Solutions Limited. All Rights Reserved. © 2020 Better Solutions Limited TopPrevNext