considering
function f() { ... }
and another function dosomething expecting a function like f
function dosomething(callback) { ...; callback() }
that expects f (an example of dosomething can be setTimeout)
calling dosomething and passing f, is there a difference between:
dosomething(f);
and
dosomething(() => f());
is any of these options preferable ?