Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

sleep function js

function sleep(ms) {
   return new Promise(resolve => setTimeout(resolve, ms));
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #sleep #function #js
ADD COMMENT
Topic
Name
2+8 =