Brief of settimeout
- In simple words, it will call any function after the specified time (milliseconds). This specified time is also called a delay.
- For example - if we specify the delay as 5000, then it will wait for 5 seconds and start to execute the function which was passed as a parameter.
Below is the syntax
First Parameter(fn) => Any function name
Second Parameter(delay) => specifies the no. of milliseconds to wait before it starts the execution of given function
... read the whole story at www.c-sharpcorner.com.