Async: From Callbacks to Promises and the Event Loop
Callbacks in JavaScript
Definition :
A callback is a function that is passed as an argument to another function and is executed after a task is completed
Example :
function greet(name, callback) {
async-callbacks-promises-eventloop.hashnode.dev6 min read