I have the following code with a function:
var f1;
var getFunction = function (f2) {
f1 = f2;
}
Later in the code, I need to call f1 (that was actually received as a parameter). Note that I don't know the function's name when I call it.
How do I make this call?
f1();f1orf2. Did you try something and experience failure? Is there something async involved? The question is very unclear.f1, guess what... its name isf1.