title: How to display a variable that changes (like a number) within an html page?
body: <p>Let's say i have a simple page that just contains a button that when clicked adds 1 to a java script num variable:</p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;body&gt;
  &lt;div&gt;
  &lt;button type="button" onclick="someFunction()"&gt;Clicking here adds 1 to the "count" variable&lt;/button&gt;
  &lt;/div&gt;
  &lt;br&gt;
  &lt;div id="output"&gt;&lt;/div&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Javascript:</p>
  
  <pre><code>var count = new num;
  
  someFunction() {
      count =+ 1;
  }
  </code></pre>
  
  <p>So my question is what would you put into the js to display the "count" varible in the div with the id "output"? do you use innerHTML? Because that doesn't seem to work....</p>
  
  <p>Also, is it possible with or without jQuery?</p>