I did something like
setInterval(function() {
console.log("!");
}, 1000 * 60 * 60);
I want to run console.log
every hour but the code doesn't work like what I want.
Let's say that I run the code at 1:30, then It would run console.log
at 2:30. but What I want to do is run the code every hour. like 1:00, 2:00, 3:00.
Is there any way to do this? Thank you!