javascript Programming Glossary: relatedthings
Javascript “OOP” and prototypes with multiple-level inheritance http://stackoverflow.com/questions/15040955/javascript-oop-and-prototypes-with-multiple-level-inheritance classes. The minimal example would be function Thing this.relatedThings Thing.prototype.relateThing function what this.relatedThings.push.. Thing.prototype.relateThing function what this.relatedThings.push what ThingA.prototype new Thing ThingA.prototype.constructor.. new Thing you are creating a new object with a property relatedThings which refers to an array. So we can say we have this Thing..
|