how to make a function that works every 15 minutes

Solutions on MaxInterview for how to make a function that works every 15 minutes by the best coders in the world

showing results for - "how to make a function that works every 15 minutes"
Lea
15 May 2019
1let timer = setInterval(function() {
2  // code
3  console.log('done');
4}, 1000*60*15); // time is in milliseconds. 1000 ms * 60 sec * 15 min