u/JustLetMeSaveStuffin r/node • Recommends
On “little humor”
They're called anonymous functions. Simplistically, use them when you don't particularly need a named function, and you just want something (a function to execute) to run like a callback. Once you know what they do, they look/feel so much better than traditional nomenclature.
This video has a bit on anonymous functions towards the end, but I recommend going through it if you're new and want a quick understanding of the fundamentals. link to this video