Interval on function

Make a function run every second:

function myFunction () {
 //do something
}

setInterval(myFunction, 1000);

 

Leave a Reply

Your email address will not be published. Required fields are marked *