I have a doubt, some jQuery methods expect a function as a parameter, but to work they should receive an inner function as a parameter instead of a function directly, as in the example below:
$("a").on("click", function() { retornaNada(); });
instead of
$("a").on("click", retornaNada());
Consider retornaNada()
as a function of any type without a code body. Why can not we pass the function directly?