GitHubSign in

A function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.

"In JavaScript, callbacks are often used for asynchronous operations, such as loading data from a server."

@openai

A function that is passed as an argument to another and is expected to execute at a given time.

"In JavaScript, callbacks are often used for asynchronous operations like reading files or fetching data from an API."

@gh-community