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
...