function A(a,b){
return /*something*/
}
function B(){
var a = /*a from function A*/
var b = /*b from function A*/
return /*something*/
}
How to pass the arguments a and b from function A to function B ?
function A(a,b){
return /*something*/
}
function B(){
var a = /*a from function A*/
var b = /*b from function A*/
return /*something*/
}
How to pass the arguments a and b from function A to function B ?
Make 2 global varialbes.
Be aware that this will not work if you are calling funtion A multiple times, before calling funtion B. http://www.w3schools.com/js/js_scope.asp