title: Show game score in div with javascript
body: <p>I've been doing some searching about updating a div containing a scoreboard but I can't really get to the bottom of it. Is there any downside of using innerHTML, what other options are there?</p>
  
  <p>What I'm trying to get is a score that updates every time the score changes, which at the moment is where the correct/incorrect alerts are as well.</p>
  
  <p>Excerpt from the fiddle:</p>
  
  <pre><code>if(pick1 == pick2 &amp;&amp; id1!=id2){
      alert('Correct');
      score += 100;
  }
  </code></pre>
  
  <p><a href="http://jsfiddle.net/94jerdaw/Sr3Yp/" rel="nofollow">http://jsfiddle.net/94jerdaw/Sr3Yp/</a></p>