title: My local Javascript file (for a test website) isn't working in ANY BROWSER...I have tried everything
body: <p>I have checked the code millions of times, and I know the code works because it's working perfectly in Codepen. It's working on friends' laptops too. I have disabled any restrictions (using the allow-local-files thingy on Chrome), and made sure the path is correct et. How can I resolve this?</p>
  
  <p>Is there any other way I can view my local Javascript file (not Codepen)?</p>
  
  <p>Here is the HTML:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;title&gt;Construtive &amp;amp; Co.&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;&lt;h1&gt;Constructive &amp;amp; Co.&lt;/h1&gt;
  &lt;p&gt;For all orders and inquiries please call &lt;em&gt;555-3344&lt;/em&gt;&lt;/p&gt;
  &lt;script src="js/add-content.js"&gt;&lt;/script&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>Here's the JS:</p>
  
  <pre><code>var today = new Date();
  var hourNow = today.getHours();
  var greeting;
  
  if (hourNow &gt; 18) {
  greeting = 'Good evening!';
  } else if (hourNow &gt; 12) {
  greeting = 'Good afternoon!';
  } else if (hourNow &gt; 0) {
  greeting = 'Good morning!';
  } else {
  greeting = 'Welcome!'
  }
  
  document.write('&lt;h3&gt;' + greeting + '&lt;/h3&gt;');
  </code></pre>