There is one function from which you need to call the one passed in the arguments:
function testone(a) {} testone(alert("123")); If you call it by this method:
function testone(a) {a();} then, naturally, the arguments of the passed function do not work, what to do?
The worst thing is that I remember exactly that I once encountered such a problem a long time ago and found a solution. There was some standard function, for example, standart (a), which performed the transferred function with arguments, but now I can’t remember as it is called.