Update: This page was originally published on April 24, 2012. Update was to added the code highlighter and make it readalbe
This is my rewrite of John Resig's Simple Javascript Inheritance. I tried to make things a bit simple, and use different variable names for clear understanding. The identifier "Class" was used used too often to throw me in vicious circle of trying to understand what it is doing. Later I understood the prototype chain.
All I learnt from:
This looks interesting, I will look at this in my free time: http://javascriptweblog.wordpress.com/2010/06/07/understanding-javascript-prototypes/
This is my rewrite of John Resig's Simple Javascript Inheritance. I tried to make things a bit simple, and use different variable names for clear understanding. The identifier "Class" was used used too often to throw me in vicious circle of trying to understand what it is doing. Later I understood the prototype chain.
All I learnt from:
- http://coffeescript.org/#classes
- http://yehudakatz.com/2011/08/12/understanding-prototypes-in-javascript/
- http://mckoss.com/jscript/object.htm
This looks interesting, I will look at this in my free time: http://javascriptweblog.wordpress.com/2010/06/07/understanding-javascript-prototypes/