Experienced python user learning JavaScript.
Let's say that I define a function that takes two arguments:
function alpha(var_a, var_b){
this.a = var_a;
this.b = var_b;
}
And then write a sample object:
function One(){
var a = [
["1"],
["2"],
["3"]
];
var b = [
["4"],
["5"],
["6"]
];
return new alpha(a, b);
}
If I had a third function that took as its argument a function:
function beta(alpha){
}
How could I reference, in this third function, the variables from the argument function?