I was wondering whether this is legal to do. Could I have something like:
function funct(a, foo(x)) { ... }
where a is an ar
a
In fact, seems like a bit complicated, is not.
get method as a parameter:
function JS_method(_callBack) { _callBack("called"); }
You can give as a parameter method:
JS_method(function (d) { //Finally this will work. alert(d) });