Run
Online Code Editor
setTimeout() method
Hello World :) :)
This is an example of using the setTimeout() method
Here, an alert dialog box will display after two seconds.