Ok. Been looking at the fat arrow vs the skinny arrow when defining functions. Thus led to callback functions and function binding.
Can someone please give a practical example of when a callback function would be used?
Thx in advance!
This is a good question and I'm not always 100% on the correct answer. I tend to go skinny arrow and if things aren't working as I expect, I try the fat arrow. I believe the fat arrow is supposed to help keep context when called VS being more like an anonymous function. But I could be wrong. I actually haven't used it in a while to be honest.
Thx all. I'm glad I'm not the only one who doesn't have this figured out!
Thx Jared that link helped clear the fog!
Just a follow up. Been doing a lot of reading on this and found this GREAT resource: