While going through the concepts of prototype. I saw below example from stackoverflow - Add new element to an existing object
var myObj = function(){
this.property = 'foo';
this.bar = function(){
}
}
myObj.prototype.objProp = true;
var newObj = new myObj();
My question is what is the use of "myObj.prototype.objProp = true;" from above code snippet.
I am an beginner. Already referred other post similar to this. But couldn't make out.
Any help on this will be appreciated. Thanks.