Crockford Prototypical Inheritance
<p>In the following article, Douglas Crockford creates a function to more closely simulate prototypical inheritance in JavaScript (<a href="http://javascript.crockford.com/prototypal.html" rel="nofollow">http://javascript.crockford.com/prototypal.html</a>).  I understand the concept.  However, once you create a new object using the function below, how do you then add methods and properties to that object other than using dot/subscript notation.  Either of which, in my opinion, would produce ugly code. </p>

<pre><code>if (typeof Object.create !== 'function') {
    Object.create = function (o) {
        function F() {}
        F.prototype = o;
        return new F();
    };
}

newObject = Object.create(oldObject);
</code></pre>

<p>Do I then need to use the following notation?</p>

<pre><code>newObject.method1 = function(){}
newObject.cnt = 1;
...
</code></pre>

<p>Does anyone else find this as an ugly way to add properties and methods to an object?</p>

<p>I understand I can technically pass in a function, for which I want to set the prototype of, with all the methods and variables. </p>

<p>I'm more or less trying to understand how Crockford intended for that function to be used.</p>
