I have several functions that evaluate some variables and come up with a result
For example:
function first(){
//variable declarations
var result1 = a+b
}
function two(){
//variable declarations
var result2 =c+d
}
I want to pass both of those results to another function
function three( result1, result2 ) {
var finalResult = result1 + result2;
}
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???
thankyou
a,b,c, anddcoming from? Are they global variables?