Sometimes, we may wish to
sleep() function in other programming languages)
sleep() function will hold the running program for a given period in milliseconds.
If you want to run code after a specific time you can use the following code:
In case you don't want to use the
setTimeout() function you can use the following: