yehudakatz.com
25 Jul '12, 11am
this is a 1yo post, but absolutely required reading for anyone who cannot explain JS prototype chains effectively.
Matt King , Posted August 13, 2011, 9:18 pm The prototype concept in Javascript is the hardest to understand for beginners (or even intermediate developers). While the newObject and createObject functions are useful, I think it only obscures the concept. I recommend checking out http://phrogz.net/js/classes/OOPinJS.html for a more technical in-depth about using prototypes. Another problem that Javascript is having is people wanting to force OOP on the language, when fundamentally it’s a prototype-based language. If developers would embrace that fact we wouldn’t have as many ‘idioms’ in Javascript that only confuse people who are being introduced to the language.
Full article:
http://yehudakatz.com/2011/08/12/understanding-prototypes...