title: Javascript reserved words
body: <p>I made an object which worked fine with FF but resulted in an error with IE (expected identifier, string or number)</p>
  
  <pre><code>var a={text:'abc',class:'def'};
  </code></pre>
  
  <p>After a litter research, I found class is a reserved word.  Quoting the word "class" fixed the problem.</p>
  
  <pre><code>var a={text:'abc',"class":'def'};
  </code></pre>
  
  <p>Is it recommended to always quote the object name to eliminate these errors?</p>
  
  <p>Thanks</p>