Callbacks in JavaScript
Published in
2 min readNov 1, 2020
In the previous post, Synchronous vs Asynchronous Programming, we discussed the difference between Synchronous and Asynchronous programming in JavaScript. In this article, we will discuss what are Callbacks in JavaScript.
Callbacks
Callback is a function that is passed as an argument to another function and its execution is delayed until that function in which it is passed is executed.