Callback

Noun · Development

Definitions

  1. A function passed to another function or system to be invoked later in response to an event, completion, or decision point. Callbacks are a foundational control-flow mechanism in asynchronous and event-driven code, though deeply nested callback chains can become hard to maintain.

    In plain English: A function given to something else to run later when needed.

    Example: "The old uploader used a callback after each chunk write, but the refactor replaced the nested chain with awaited promises for clarity."

Related Terms