title: Calling Js script function from external Scripts
body: <p>Am trying to call a JS script from a function library in another script.</p>
  
  <p>Eg. iceCreams.Js contains  ---></p>
  
  <pre><code>iceCream(iceCreams){
  var profit = .54
  
  var Total = iceCreams * profits
  
  return Total;
  
  }
  </code></pre>
  
  <p>register.js contains --></p>
  
  <pre><code>dailyTotals(wages, iceCreams){
  
  var total = iceCream(iceCreams);
  
  var profit = iceCreaps - wages
  
  return wages;
  }
  </code></pre>
  
  <p>Any help pointing me in the right direction?!</p>