title: Javascript: Passing arguments from multiple functions to 1 function
body: <p>I have several functions that evaluate some variables and come up with a result</p>
  
  <p>For example:</p>
  
  <pre><code>function first(){
     //variable declarations
     var result1 = a+b
  }
  
  function two(){
     //variable declarations
     var result2 =c+d 
  }
  </code></pre>
  
  <p>I want to pass both of those results to another function</p>
  
  <pre><code>function three( result1, result2 ) {
     var finalResult = result1 + result2;
  }
  </code></pre>
  
  <p>My question is where do I call function 3 from. because in reality I have about 10 functions with results I need to pass. Do I put three(result#) at the end of each???</p>
  
  <p>thankyou</p>