U
User1014
Since you can pass a function to a ... erm...... function....
how to you use the result of a function as the argument for another
function instead of passing the actual function to it.
i.e.
function foo2(){}
function foo(func){}
foo(foo2);
This passes foo2 to foo, can I do foo(foo2()) ?
i.e. is the difference between whether a function is passed or evaluated
dependent on whether you use "()" after the function name?
how to you use the result of a function as the argument for another
function instead of passing the actual function to it.
i.e.
function foo2(){}
function foo(func){}
foo(foo2);
This passes foo2 to foo, can I do foo(foo2()) ?
i.e. is the difference between whether a function is passed or evaluated
dependent on whether you use "()" after the function name?