As far as I can tell, these two pieces of javascript behave the same way:
Option A:
function myTimeoutFunction() { doStuff();
The difference is obvious in console: