Callback Functions


Callback functions are functions that are passed as arguments into other functions to be executed at a later point in time.

Notice how callback functions are used:



Anonymous Callbacks

Callbacks can be created and used without being bound to a specific function name. Anonymous callbacks are useful when a callback is only needed to be declared once, since they are quicker to write than named callbacks.

Notice how an anonymous callback is used:



Notice how an anonymous callback is used with arrow functions:

results matching ""

    No results matching ""