Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript run every 5 seconds

const interval = setInterval(function() {
   // method to be executed;
 }, 5000);

clearInterval(interval); // thanks @Luca D'Amico
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #run #seconds
ADD COMMENT
Topic
Name
6+2 =