u/Sad-Brief-2846 wrote (the comment Michael replied to):
u/michaelnovati \- could you please give me examples of what you consider inline and callback functions? just to see if I have a correct idea of the difference
u/michaelnovati replied ·
Passing in a function is subtly different "scope" then when a for loop is in the same scope as the parent context
In most cases you won't see much impact, but you can rig up some examples where it matters.
There is also for x of n that you can compare to too.
There are subtle performance implications of all of these that is a few levels more deep as well