my scenario is:
var data = getData();
function getData(){
return 8;
}
function closePopup(){
console.log('close popup executed');
}
Here I want to call closePopup
method on complete execution of getData()
function like synchronously.
Thanks Rambabu B