Javascript object literal notation, using functions
<p>I'm creating an object using literal notation. Is it possible to have some of the properties use previously defined properties as their value? </p>

<p>For example:</p>

<pre><code>    var test = {
        prop1: obj1, 
        prop2: obj2,
        prop3: (prop1!=null)?prop1:prop2
    };
</code></pre>
