All about setTimeout() in java script
The setTimeout() method executes a block of code after the specified time.
The commonly used syntax of JavaScript setTimeout is:
setTimeout(function, delay);
Its parameters are:
function - a function containing a block of code we want to execute
...
shyam0705.hashnode.dev3 min read
Umashankar Yadav
software developer
Very Nice explanation