Understanding Callback Functions in JavaScript
In JavaScript, functions are not just something you run.
They can also be treated like values.
That means you can:
store them in variables
pass them as arguments
return them from other functions
understanding-javascript-methods.hashnode.dev3 min read