Prototype and Inheritance in JS (non-class) note: It is important to note that x.__proto__ is a legacy feature and should not be used in production code, and it is not present in every modern browser. However, we can use it throughout this article for demonstrative purposes. Use Object.getPrototypeOf(x) instead. Creating objects through Constructor Functions Because each character will share many … Continue reading Prototype and Inheritance in JS (non-class)