Sleep Function in Javascript
· ☕ 1 min read
Sleep holds off your function execution for specified time. This is super useful whenever you want to hold off something for ‘x’ time.
Here are two ways in which you can get your program to sleep for a while.
setTimeOut 1 2 3 4 5 6 7 8 9 10 11 12 13 function sleep() { console.