JavaScript Extending Class
Updated below for ES6 March 2013 and ES5 This MDN document describes extending classes well: https://developer.mozilla.org/en-US/docs/JavaScript/Introduction_to_Object-Oriented_JavaScript In particular, here is now they handle it: // define the Person Class function Person() {} Person.prototype.walk = function(){ alert (‘I am walking!’); }; Person.prototype.sayHello = function(){ alert (‘hello’); }; // define the Student class function Student() { // … Read more