The constructor property - Relate Pre-existing Objects?
<p>I'm currently trying to test whether it's possible to make one object inherit from another object AFTER both objects have been created using literals.  I tried to aim the constructors and prototypes at one another but it seems like no matter what, the only way Im going to pull this off is by building a new object using one of the pre-existing ones..  Let me know if I'm wrong.  Here was my quick attempt to solve the problem.</p>

<pre><code>Object.relate = function(parent, child){
    function F(){};
    F.prototype = parent;
    child.constructor = F;
}
alpha = {a:1};
beta = {b:2};

Object.relate(alpha, beta); 
</code></pre>
