What is a callback function?
Callback Function A function which passed to another function as an argument.
function test_function(){ alert("Hello world"); } setTimeout(test_function, 2000);
Note: In above example test_function used as an argument for setTimeout function.