Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sleep javascript

//Javascipt is asyncronous so you can't pause/block code execution
//You can delay doing something with setTimeout
setTimeout(function(){
 	alert("Sup!"); 
}, 2000);//wait 2 seconds
Source by stickynotepickles.herokuapp.com #
 
PREVIOUS NEXT
Tagged: #sleep #javascript
ADD COMMENT
Topic
Name
1+7 =