Functions & Programming Concepts · Level 2 of 5
Callback
A function supplied to another component to be invoked at a specified point.
The caller controls when the callback runs, possibly asynchronously.
Example
A button stores a function to run when tapped.
Listen to the definition and example
Audio transcript
Callback. A function supplied to another component to be invoked at a specified point. The caller controls when the callback runs, possibly asynchronously. For example: A button stores a function to run when tapped.
Explore this concept
Why it matters
This helps you distinguish a computation’s contract, inputs, outputs, and behavior.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.