title: Visual Studio Code - Link Javascript file to HTML file
body: <p>I'm trying to create an <code>alert</code> in JavaScript when HTML page is loaded.</p>
  
  <p>I linked the JavaScript file to the HTML file, but the alert doesn't appear.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>The CSS file links successfully to the HTML file, and there are no errors on the developer tools on Chrome.</p>
  
  <p><strong>Code</strong>  </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>alert("page is loaded");</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
      &lt;html&gt;
      &lt;head&gt;
      &lt;link rel="stylesheet" href="js.js" type="text/Javascript"&gt;
      &lt;link rel="stylesheet" href="css.css" type="text/css"&gt;
      &lt;/head&gt;
      &lt;body&gt;
      &lt;p id="firstParagraph"&gt;Hello world!&lt;/p&gt;
      &lt;/body&gt;
      &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>