title: Where should I declare JavaScript files used in my page? In <head></head> or near </body>?
body: <p>I was reading a tutorial and the author mentioned to include JavaScript files near the closing <code>body</code> tag (<code>&lt;/body&gt;</code>) in HTML.</p>
  <p>For what type of functionality should I not declare/define JavaScript include in the <code>head</code> section? It makes sense to me include JavaScript like <a href="https://en.wikipedia.org/wiki/Google_Analytics" rel="nofollow noreferrer">Google Analytics</a> near the closing <code>body</code> tag. Where should I be careful in defining JavaScript include near the closing <code>body</code> tag?</p>