A function passed in to be called once some operation finishes.
A function passed in ahead of time so that it's invoked when an operation completes, used as an early technique for implementing asynchronous processing. Chaining several asynchronous steps this way tends to nest callbacks inside callbacks -- a readability problem known as 'callback hell' -- and Promises and async/await were later introduced specifically to solve it.
© 2026 ITBGM