You can call it as follows,
var callBack = function(param1, param2) { ... }
window.setTimeout( function(){callBack('foo','bar');}, 1000 );
More Related Contents:
- How to access the correct `this` inside a callback
- How to return value from an asynchronous callback function? [duplicate]
- Aren’t promises just callbacks?
- Pass correct “this” context to setTimeout callback?
- Pass an extra argument to a callback function
- Why does the setInterval callback execute only once?
- I know that callback function runs asynchronously, but why?
- JavaScript: Passing parameters to a callback function
- How should I call 3 functions in order to execute them one after the other?
- setting a variable to get return from call back function using promise
- JavaScript setTimeout() won’t wait to Execute? [duplicate]
- What is “callback hell” and how and why does RX solve it?
- Wait till a Function with animations is finished until running another Function
- How can I take advantage of callback functions for asynchronous XMLHttpRequest?
- Is it possible to catch exceptions thrown in a JavaScript async callback?
- understanding the concept of javascript callbacks with node.js, especially in loops
- newbie approach: what is a javascript callback function?
- Executing async code on update of state with react-hooks
- Facebook “Like” button callback
- Javascript callback function with parameters [duplicate]
- Performance of NodeJS with large amount of callbacks
- How can I preserve lexical scope in TypeScript with a callback function
- Waiting on multiple asynchronous calls to complete before continuing
- Hidden threads in Javascript/Node that never execute user code: is it possible, and if so could it lead to an arcane possibility for a race condition?
- Pass additional parameter to Javascript callback function [duplicate]
- How to pass a callback as a parameter into another function
- Dynamically loading css file using javascript with callback without jQuery
- Node.js: When to use Promises vs Callbacks
- How to sync JavaScript callbacks?
- jQuery $.ajax(), pass success data into separate function