Introduction to Prototypes in JavaScript
Understanding Prototypes in JavaScript When we create a class using a constructor function, memory pre-allocates an object caled the prototype object. The constructor function has a prototype property pointing to this object, and the prototype object has a constructor property pointing back to the c...