About 90,200 results
Open links in new tab
  1. JavaScript Callbacks - W3Schools

    Callbacks are often used in JavaScript, especially in event handling. User interactions, such as button clicks or key presses, can be handled by providing a callback function to an event listener:

  2. Callback (computer programming) - Wikipedia

    In computer programming, a callback is a programming pattern in which a function reference is passed from one context (consumer) to another (provider) such that the provider can call the function.

  3. language agnostic - What is a callback function? - Stack Overflow

    May 5, 2009 · In programming words, a function leaves a reference of itself to another piece of code, e.g. by registering, and the other code uses this reference to call the (callback) function when …

  4. JavaScript Callbacks - GeeksforGeeks

    Jan 17, 2026 · Callbacks allow one function to call another at a later time. A callback function can execute after another function has finished. Here, sayBye () is passed as a callback to greet (), which …

  5. Callback function - Glossary | MDN

    Aug 19, 2025 · Synchronous callbacks are called immediately after the invocation of the outer function, with no intervening asynchronous tasks, while asynchronous callbacks are called at some point later, …

  6. How to Use Callback Functions in JavaScript - freeCodeCamp.org

    Jul 3, 2024 · Callback functions help manage asynchronous operations, ensuring that the code continues to run smoothly without waiting for tasks to complete. This approach is crucial for …

  7. An Essential Guide to JavaScript Callbacks

    In this tutorial, you will learn about JavaScript callbacks and how they are used to handle asynchronous operations.

  8. Introduction: callbacks - The Modern JavaScript Tutorial

    Jun 18, 2022 · To demonstrate the use of callbacks, promises and other abstract concepts, we’ll be using some browser methods: specifically, loading scripts and performing simple document …

  9. JavaScript Callbacks Explained

    Jun 24, 2025 · JavaScript callbacks are simple yet powerful. They let you manage tasks that take time, like file reads or network requests, without stopping the rest of your code.

  10. Callbacks in JavaScript: It’s All About Giving Up Control

    Callbacks in JavaScript: It’s All About Giving Up Control Most tutorials will tell you: “A callback is a function passed as an argument to another function.” Sure, that’s technically correct …