How to output javascript to a page
<p>I've been tasked with the classic Fizz-Buzz problem. Writing the JS isn't that hard, but I'm struggling with linking to my HTML and outputting it to a page. I'm pretty sure I should be using document.write...</p>

<p><strong>js</strong></p>

<pre><code>function fizzBuzz(){
   for(var i=1;i&lt;=100;i++){
      if(i%5 === 0 &amp;&amp; i%3 === 0){
          print('FizzBuzz');
      } else if(i%3 === 0){
        print('Fizz');
      } else if(i%5 === 0){
        print('Buzz');
      } else {
        print(i);
    }
  }
}
</code></pre>

<p><strong>HTML</strong></p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
    &lt;head&gt;
        &lt;meta charset="UTF-8"&gt;
        &lt;title&gt;FizzBuzz&lt;/title&gt;
        &lt;script src="js/app.js"&gt;&lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
</code></pre>