Callbacks in JavaScript: Why They Exist
What is callback function
Callback function is just a simple function which is passed as an argument to another function.
This was previously used to handle asynchronous tasks.
function hof(callback){
javascript-kartik.hashnode.dev3 min read