This is an example of the sleep() function in JavaScript
There is a time gap of 4000 milliseconds