A prototype helps you to have a form of inheritance (prototype inheritance).
you can add properties to your objects manually or borrow a property from your prototype. Let's take a look at some examples:
var obj = new myClass();
obj.p2 = 'p - child';
console.log(obj.p2);
var obj2 = Object.assign(obj.__proto__);
console.log(obj.p2);
Now let's see what happens with the myClass prototype:
var obj3 = Object.assign(myClass.prototype);
console.log(obj3.p2);
And here is an example with non-existing properties:
var obj4 = new myClass();
var obj5 = Object.assign(obj4.__proto__);
obj4.p3 = 'P3 - value';
console.log(obj4.p3);
console.log(obj5.p3);
: __proto__ {}, .
, .