I am using setInterval() function like this.fun2(){ return setInterval();}fun(){ interval = fun2(); -----some code------ ------some code-----}The problem is that when fun2() is called it is executing the fun2()... but by the side ----some code---- is also executed. what i want is, this '---some code--' must be executed only after execution of fun2() is over. plz suggest how can do that?