Run
Online Code Editor
setInterval() method
Hello World :) :)
This is an example of using the setInterval() method
Here, an alert dialog box displays on every three seconds.