Suggest an editImprove this articleRefine the answer for “Callback function”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**A callback function** is a function passed as an argument to another function and called later, once that function finishes its work. It lets you perform actions after an event, an operation, or an asynchronous process. **Key point:** a callback is a way to pass behavior and control the order in which code runs, especially in asynchronous operations.Shown above the full answer for quick recall.Answer (EN)Image**A callback function** is a function that is **passed as an argument** to another function and is **called later**, once that function finishes its work. Callbacks are usually used to **perform actions after an event, an operation, or an asynchronous process** (for example, loading data, a timer, or a click). Example: ```javascript function fetchData(callback) { setTimeout(() => { const data = 'Data from the server'; callback(data); // call the passed function }, 1000); } fetchData(result => console.log(result)); // "Data from the server" ``` **Summary:** a callback is a way to **pass behavior** and control the **order in which code runs** (especially in asynchronous operations).For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.