title: what's wrong with this javascript code getElementById?
body: <p>I have this code below..</p>
  
  <pre><code>&lt;script&gt;  document.getElementById('example').style.background-color =
  '#FFCC00';    
  &lt;/script&gt;
  &lt;div id="example"&gt;This is an example.&lt;/div&gt;
  </code></pre>
  
  <p>why does not it work?</p>