Understanding Objects and Prototypes in Javascript
JavaScript is an object-based language based on prototypes, rather than being class-based. Objects are not inherently class-based but it is often convenient to define class-like abstractions based upon a common pattern of constructor…