Simple assignment versus push method in prototypal inheritance
Say I have this block of code: let hamster = { stomach: [], eat(food) { this.stomach.push(food); } }; let speedy = { __proto__: hamster }; let lazy = { __proto__: hamster }; speedy.eat("apple"); alert( speedy.stomach ); // apple . alert( lazy.stomach ); // apple Both speedy and lazy objects share the same stomach array, but