Instead of setTimeOut() method in javascript,is there any way to produce delay between methods.
For example, say there are 2 methods.
Method1()
Method2()
The requirement is that method2 has to proceed on only after method1 is completed.
Thanks in advance.