Callbacks :-
A callback is a function given to another function to be called after some operation completes.It helps handle asynchronous tasks like API calls or events.
function greet(name, callback) {
console.l
callbackandpromises.hashnode.dev5 min read