Setting innerHTML vs. setting value with Javascript
<p>When you want to use Javascript to change HTML, how do you know when to use either of the following?</p>

<pre><code>document.getElementById("randomNumber").value = number;
document.getElementById("randomNumber").innerHTML = number;
</code></pre>
