Prototypal Inheritance Explained
In JavaScript, objects have a special hidden property [[Prototype]]. Itβs either null or references another object.
Memory Efficiency
Instead of every instance of an object having its own copy of a method, we can put the method on the prototype. All instances will share that one single function, saving massive amounts of memory.