callback-based coding

noun
UK /ˈkɔːlbæk beɪst ˈkəʊdɪŋ/
US /ˈkɔːlbæk beɪst ˈkoʊdɪŋ/

A way of writing computer programs where you tell the computer to do something later and then call you back when it is done.

In callback-based coding, you give the computer a function to run after it finishes loading the file.


OTHER MEANINGS

2. A coding style common in JavaScript where functions are passed as arguments to be executed after a task completes.

Many older Node.js libraries rely on callback-based coding for file operations.

3. A programming approach that avoids blocking by handing off work and receiving results through callbacks.

Callback-based coding helps keep the user interface responsive during long tasks.

4. A technique where a function is supplied to handle the result or error of an asynchronous operation.

The tutorial introduced callback-based coding with a simple timer example.