JavaScript

Callback

Definition

A function passed as an argument to another function, to be executed later. Callbacks are the foundation of asynchronous JavaScript and are used extensively in event handling and array methods.

Code Example

Javascript
Tip: Modify the code above and click “Run” to see the results

Learn More

Related Terms