Run
Online Code Editor
setTimeout() method
Hello World :) :)
This is an example of using the setTimeout() method
Click the following button before 2 seconds to see the effect.
Stop