Community Member Profile
- Profile: /members/8572-John.htm
- Comments: 3
- Points: 29
Recent Blog Comments By John
-
Understanding The Complex And Circular Relationships Between Objects In JavaScript
Posted on May 20, 2012 at 4:28 AM
@Will Vaughn I tried your javascript example but got this error:- foo.print is not a function... read more »
-
Object.create() Improves Constructor-Based Inheritance In Javascript - It Doesn't Replace It
Posted on Jul 3, 2011 at 12:02 PM
If the Crockford prototype function is modified slightly then Object creation can include basic instantiation too, and further simplify matters. Object.creator = function(o) { var initArgs = Array.prototype.slice.call(arguments,1) function F() {
read more » -
Object.create() Improves Constructor-Based Inheritance In Javascript - It Doesn't Replace It
Posted on Jul 3, 2011 at 8:13 AM
I don't see any advantages of the function constructor method as you suggest. In your 3rd code example if you remove the girl and person object literal properties, then the setup is equivalent to the function method. The girl and person objects are constructors, and the sarah and tricia obj... read more »



