title: Assign Key Value with another key value in JavaScript Object
body: <p>I know its possible to set a key value with a preceding key value in Javascript for example </p>
  
  <pre><code>var obj = {
              one: "yes",
              two: obj.one
            }
  </code></pre>
  
  <p>obj[two] is now equal to "yes"</p>
  
  <p>How do i go about setting the value when the keys are in a function</p>
  
  <pre><code>var obj = {
               one: function () {
                    return(
                       two: "yes"
                       three: ?? //I want to set three to the value of two
                    )
               }
            }
  </code></pre>
  
  <p>I want to have three contain the value of two i.e obj.one() should return {two: "yes", three: "yes"}</p>