What's difference between keys with and without quotes in object literal
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4348478/what-is-the-difference-between-object-keys-with-quotes-and-without-quotes">What is the difference between object keys with quotes and without quotes?</a>  </p>
</blockquote>



<p>I mostly know JavaScript from using it, but there's something I don't understand yet.</p>

<p>What's the difference between these two object literals:</p>

<pre><code>var obj1 = {
   myProp: '123'
};

var obj2 = {
   'myProp': '123'
};
</code></pre>

<p>Are they just 'synonyms', or is there a subtle difference?</p>

<p>Thanks!</p>
