title: Call a function in an external .js file from another .js file
body: <p>I have two .js files:</p>
  
  <p>Card_API.js
  script.js</p>
  
  <p>I want to be able to call functions in Card_API.js from script.js.</p>
  
  <p>My references in the HTML file look like this:</p>
  
  <pre><code>&lt;script type="text/javascript" src="js/Card_API.js"&gt;&lt;\script&gt;
  &lt;script type="text/javascript" src="js/script.js"&gt;&lt;\script&gt;
  </code></pre>
  
  <p>in the Card_API.js file, I have a function:</p>
  
  <pre><code>function sortCardsByMana(array, reverse){
      // Do Stuff
  }
  </code></pre>
  
  <p>I want to be able to call the above function in the script.js file, but when I try it like this:</p>
  
  <pre><code>sortCardsByMana(cards, false);
  </code></pre>
  
  <p>...it gives an error saying that the function is not defined.</p>
  
  <p>Can anyone tell me what I'm doing wrong or if I it's possible?</p>