call a javascript function at a specific time of day

Solutions on MaxInterview for call a javascript function at a specific time of day by the best coders in the world

showing results for - "call a javascript function at a specific time of day"
Noemi
11 Oct 2019
1setInterval(()=>{
2let now = new Date();
3//86400000 represents 10 hours in milliseconds Change it as you like
4if(now.getTime() == 86400000 ){
5  //your code
6}
7}, 1);
similar questions