Callbacks in JavaScript: Why They Exist
In JavaScript, functions are first-class citizens, which means:
We can store them in variables
We can pass them as arguments
We can return them from other functions
š” This makes JavaScript very
promises-with-raj.hashnode.dev4 min read