You are reading a single comment by @user47955 and its replies. Click here to read the full conversation.
  • If I run the following code the setInterval fires straight away and continuously, it should only fire every hour:

    function test(){
      console.log("Test Function");
    }
    
    setInterval(test, 60*60*1000);
    

    If you change it to this so that it only runs every 24 hours it works OK:

    function test(){
      console.log("Test Function");
    }
    
    setInterval(test, 24*60*60*1000);
    

    Is this a bug?

About

Avatar for user47955 @user47955 started