Sitemap
Vishalbhateria

Vishalbhateria

callbacks in javascript

Aug 9, 2026

callbacks are function which is passed as argument in the another function

So you think what that function called where we passing our callback function that function called the Higher order function

for example : function higherOrderFunction(callback){

console.log(“this is higher order fucntion”)

return callback();

Get Vishalbhateria’s stories in your inbox

Join Medium for free to get updates from this writer.

}

function callback(){

console.log(“this is callback function”)

}

//calling of higher order function

higherOrderFunction(callback);

--

--