8 ms·
Why does Object.prototype keep making it on those lists? Hands up please if you have used inheritance in JS (or any language) lately.
by cburgmer 13y 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.
- Torn 13y agoraises 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-for-ecmascript-5/ http://uxebu.com/blog/2011/02/23/object-based-inheritance-fo...