The setTimeout
method sets a timer that executes the specified function when it expires.
The function to be executed after the expiration time.
The number of milliseconds of delay after which the function call will occur.
If this parameter is omitted, delay
takes the default value of 0, specifying that the function will be executed after the execution of existing tasks queued in the js thread task queue.
The js thread may be frozen while the app is in the background. As a result, the actual delay of setTimeout
may be longer than the specified value.
Also, the duration of the frozen js thread will still be counted in the delay of setTimeout
.
Returns a positive integer representing the ID value of the timer. This ID value can be used to cancel the timer.
The front-end code should not make any assumptions about the actual value of the returned ID.
LCD tables only load in the browser