I have some functions which returns an array. These functions will be called by another function. My code doesn't seem to work, any idea why?
function foo1(){
..
..
var A[];
return A;
}
function foo2(){
..
..
var B[];
return B;
}
function catcher(){
c1=foo1();
c2=foo2();
var d=[];
for(var i = 0; i<a.length; i++){
d.push(a[i],b[i],c[i]);
}
}
Could anybody throw some light on how to access one function from another.
I suspect it's not storing what I want it too (in the array).