Callback function in JavaScript
in simple words we can say that callback function is a function that passed in to another function as an argument. setTimeout(()=>{
console.log("welcome")
},3000) Look this example, we have a callback function inside of set Timeout function.the callback function console “welcome” only after 3 s. Is callback function asynchronous? Callback function are not async by nature.but can be used for async operations.
Callback function in JavaScript in simple words we can say that callback function is a function that passed in to another function as an argument. setTimeout(()=>{
console.log("welcome")
},3000) Look this example, we have a callback function inside of set Timeout function.the callback function console “welcome” only after 3 s. Is callback function asynchronous? Callback function are not async by nature.but can be used for async operations. web-development
Callback function JavaScript simple word say callback function function passed another function argument setTimeout consolelogwelcome 3000 Look example callback function inside set Timeout functionthe callback function console “welcome” 3 callback function asynchronous Callback function async naturebut used async operation webdevelopment