Пример неудачного использования шаблона классического наследования №1
function Parent (name) {
this.name = name || 'Adam';
this.things = ['apple'];
}
Parent.prototype.getThingsList = function() {
return this.things.join(', ');
};
function Child() {}
var parent = new Parent();
Child.prototype = parent;
var child = new Child();
console.log(parent.getThingsList());
console.log(child.getThingsList());
child.things.push('stick');
console.log(parent.getThingsList());
console.log(child.getThingsList());