Community Member Profile
- Profile: /members/8711-Frank.htm
- URL: https://go-left.com
- Comments: 3
- Points: 31
Recent Blog Comments By Frank
-
Object.create() Improves Constructor-Based Inheritance In Javascript - It Doesn't Replace It
Posted on Feb 2, 2012 at 2:37 PM
@Pangus, to understand the reasoning behind the design patterns I can recommend the book "Pro JavaScript Design Patterns" which starts out building simple classes, then adding encapsulation, inheritance and so forth. The authors are showing the different ways of emulating certain... read more »
-
Object.create() Improves Constructor-Based Inheritance In Javascript - It Doesn't Replace It
Posted on Aug 1, 2011 at 11:20 AM
@Ben, yep, that makes sense. Thanks Frank... read more »
-
Object.create() Improves Constructor-Based Inheritance In Javascript - It Doesn't Replace It
Posted on Aug 1, 2011 at 5:15 AM
Hi Ben, thanks for the article. I've got one question, though. Why not just use this? Girl.prototype = Person.prototype; The Person object sets up all its members in the constructor class so there should be no shared members which could cause a conflict. Thanks Frank<... read more »



