javascript access property of just creating object : <p>I would like to initialize property of object using another property of the same object which is just created using object literal:</p>

<pre><code>var result = {
    a : 1,
    b : a
};
</code></pre>

<p>The result should be</p>

<pre><code>{
    a:1,
    b:1
}
</code></pre>

<p>Is there any way to do this without first creating object? Using some kind of this?</p>
