title: How to declare a global variable in a .js file
body: <p>I need a few global variables that I need in all <code>.js</code> files.</p>
  
  <p>For example, consider the following 4 files:</p>
  
  <ol>
  <li><code>global.js</code></li>
  <li><code>js1.js</code></li>
  <li><code>js2.js</code></li>
  <li><code>js3.js</code></li>
  </ol>
  
  <p>Is there a way that I can declare 3 global variables in <code>global.js</code> and access them in any of the other 3 <code>.js</code> files considering I load all the above 4 files into a HTML document?</p>
  
  <p>Can someone please tell me if this is possible or is there a work around to achieve this?</p>