Callback function
Also known as callback · callbacks
A function supplied to other code so that code can invoke it when appropriate.
In the real world
[1, 2, 3].map(n => n * 2) calls the supplied callback for each array element.
Also known as callback · callbacks
A function supplied to other code so that code can invoke it when appropriate.
[1, 2, 3].map(n => n * 2) calls the supplied callback for each array element.