title: How to insert text in an HTML document using JavaScript?
body: <p>I want to replace a <code>span</code> element with the <code>id</code> "randMsg" with the string <code>"saying"</code>. Here is what I have right now:</p>
  
  <pre><code> document.getElementById('randMsg').write(saying);
  </code></pre>
  
  <p>Any ideas? I’m a JavaScript noob, what am I doing wrong?</p>