Prototypes in JavaScript
In JavaScript, a prototype is an object that serves as a template or blueprint for other objects to inherit properties and methods from. Every object in JavaScript has a prototype, except for the root object, Object.prototype.
When an object is creat...
mdalamin.hashnode.dev1 min read