JavaScript Add a Custom Function or Property to All Objects/Variables
Everything in JavaScript is an object. When you try to access a property on the object, it is looked up on the object but if not found, then looked up on the object’s prototype. The prototype is another object accessible via ob.__proto__ or even better Object.getPrototypeOf(ob). This prototype is also an object which further has […]