Run
Online Code Editor
Example of using sleep() in JavaScript