How to Sleep Before Continuing in JavaScript?

Posted by Pinki | Updated on

In this example you will learn, how to Sleep Before Continuing in JavaScript. You can simply use the setTimeout() method to sleep or wait before continuing to run the code in JavaScript. The time to delay in script execution is specified in milliseconds (thousandths of a second).


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers