Category: Javascript
-
Run a Javascript on 1st second of every minute
A very common way to execute a code every minute is something like this: setInterval(function(){ console.log(“Function to execute every minute”); }, 1000*60); Above code should always work just fine. But what if we want exactly on some particular second ? or as soon as some time has passed. Below I will show an example where…