title: How can I call a javascript function from an html file
body: <p>I have a <code>.js</code> file defined as follows:</p>
  
  <pre><code>&lt;script&gt;
      function sayHello() {
          alert("Hello World");
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>And I have a <code>.html</code> file defined as follows:</p>
  
  <pre><code>&lt;!doctype html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;link rel="stylesheet" href="css/testCSS.css"&gt;
          &lt;title&gt;test html&lt;/title&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;script type="text/javascript" src="js/testJS.js"&gt;&lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>How can I call the <code>sayHello()</code> function?</p>