function tick() { //get the mins of the current time var mins = new Date().getMinutes(); if (mins == "00") { alert('Do stuff'); } console.log('Tick ' + mins); } setInterval(tick, 1000);
function tick() { //get the mins of the current time var mins = new Date().getMinutes(); if (mins == "00") { alert('Do stuff'); } console.log('Tick ' + mins); } setInterval(tick, 1000);