Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js 1 second sleep

setTimeout(myFunction, 1000);

// if you have defined a function named myFunction 
// it will run after 3 seconds (3000 milliseconds)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #sleep
ADD COMMENT
Topic
Name
1+4 =