What is the use of setTimeout

Posted by Andre Scott | Updated on

The setTimeout() method is used to call a function or evaluate an expression after a specified number of milliseconds. For example, let’s log a message after 2 seconds using setTimeout method,

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