Free for PREMIUM members
Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium
function Func1(y, func2)
//process Func1 function
var x =10;
alert('Func1 has done processing, press ok to call func2 now');
func2();//calling func2 function after func1 has finished...
alert('Func2 is called');
//calling func1 and passing reference to func2 to be used as callback function
Open in new window
We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!