title: Access object properties within object
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/12659792/access-javascript-object-literal-value-in-same-object">Access JavaScript Object Literal value in same object</a>  </p>
  </blockquote>
  
  
  
  <p>First look at the following JavaScript object </p>
  
  <pre><code>var settings = {
    user:"someuser",
    password:"password",
    country:"Country",
    birthplace:country
  }
  </code></pre>
  
  <p>I want to set <code>birthplace</code> value same as <code>country</code>, so i put the object value <code>country</code> in-front of <code>birthplace</code> but it didn't work for me, I also used <code>this.country</code> but it still failed. My question is how to access the property of object within object.</p>
  
  <p>Some users are addicted to ask "what you want to do or send your script etc" the answer for those people is simple "I want to access object property within object" and the script is mentioned above.</p>
  
  <p>Any help will be appreciated :) </p>
  
  <p>Regards</p>