Here’s a cool way for extending JavaScript objects without using constructors and “classes”, but simple literals/singletons, representing Base and Subclass objects: [sourcecode language=”javascript”] (function() { "use strict"; // the extend function function extend(superclass, subclass) { for(var key in superclass) { if(superclass.hasOwnProperty(key)) { subclass[key] = superclass[key]; } } … Continue reading “JavaScript Inheritance Without Constructors”