Hacker News new | ask | show | jobs
by cburgmer 4768 days ago
Why does Object.prototype keep making it on those lists? Hands up please if you have used inheritance in JS (or any language) lately.
1 comments

raises hand. I'm sure most people building frontend applications in js with MVC patterns are using inheritance.

People doing OO-style inheritance in js probably want to go down the ES5 Object.create route, rather than reassigning prototypes.

http://uxebu.com/blog/2011/02/23/object-based-inheritance-fo...