Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript sleep 1 second

setTimeout(() =>{
  console.log("This is a callback to be executed after 1 second");
},1000);
Source by maxinterview.com #
 
PREVIOUS NEXT
Tagged: #javascript #sleep
ADD COMMENT
Topic
Name
7+4 =