Prototypes and Inheritance in JavaScript

Thursday, July 22, 2010

Forget everything you know about object-oriented programming. Instead, I want you to think about race cars. Yes – race cars.

That's the intro for my latest article @ Script Junkie - Prototypes and Inheritance in JavaScript. I hope you enjoy reading it.


Ken Friday, July 23, 2010
gravatar Juergen Riemer Friday, July 23, 2010
Thanks for the article. Only problem: you can't print the article :(
gravatar Jason Meckley Friday, July 23, 2010
Scott, nice article. javascript has always been an enigma to me. jquery made javascript easier, but it was still a black box operation. your article on prototypes helps me understand what the core javascript language is capable of. which demystifies some of javascripts "magic".
gravatar Erik Friday, July 23, 2010
Great article! I've read others on this topic that haven't really helped me to understand the subject as well as yours did. Thanks! =)
Christof Jans Friday, July 23, 2010
So __proto__ and prototype are not the same? That right there clarified a lot for me. Thx for the article.
gravatar Doeke Zanstra Saturday, July 24, 2010
Nice article! But can you also explain why prototype and __proto__ can't be the same? The way you explain it makes it simple to understand, but why on earth do you both know prototype AND _proto__???
gravatar scott Saturday, July 24, 2010
@Christof: Yes. To be honest, I didn't understand this fully for a number of years.

@Doeke: How did I know about __proto__ and prototype? By reading the spec again :)
gravatar Evan Thursday, August 5, 2010
Hey Scott,

Nice article. Thought you might be interested in bashing my POC for prototypal inheritance in C#:

Comments are now closed.
by K. Scott Allen K.Scott Allen
My Pluralsight Courses
The Podcast!