What is reason of using ' [ ] ' notation to access javascript object members instead of dot notation?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4968406/javascript-property-access-dot-notation-vs-brackets">JavaScript property access: dot notation vs. brackets?</a>  </p>
</blockquote>



<p>I am now reading some of open source javascript project codes and i see that sometimes they access object property like <code>person.name</code> but sometimes they access like <code>person['name']</code>. </p>

<p>For me dot notation is so much clear against other. Dot notation is easy to write and read but in source code i see that they are sometimes used dot notation sometimes [] braces notation and i am trying to understand what is the reason of it. </p>

<p>What can be reason of it ? </p>
