Example taken from here: http://sporto.github.io/blog/2013/02/22/a-plain-english-guide-to-javascript-prototypes/
I also asked a similar question here: Javascript: Added function does not appear on parent object.
Create an object
>function Person(name) {
this.name = name;
}
Add an attribute as a prototype. The new kind attribute does not appear on the object.
>Person.prototype.kind = 'person'
>Person
<function Person(name) {
this.name = name;
}
Now create a new object using the parent as the prototype. The added attribute is visible.
var zack = new Person('Zack');
Person {name: "Zack", kind: "person"}
Why is the added kind attribute not visible on the parent Person object, even though it can convey it to children?