title: setInterval() still triggering after clearInterval() in NodeJS
body: <p>I have the following code setting and clearing an interval inside a NodeJS script.</p>
  <p>Starting interval works fine, but when trying to clear it, the <code>stopping interval</code> console will trigger, but the interval will continue firing every minute.</p>
  <pre><code>app.get(&quot;/api&quot;, async (req, res) =&gt; {
  
      active = req.query.active;
      
      let interval = null;
  
      if (active == &quot;true&quot;) {
  
          console.log(&quot;starting interval&quot;);
  
          interval = setInterval(async function() {
              try {
                  const Posts = await getPosts();
                  const Comments = await getComments();
                  sendPosts().then(() =&gt; sendComments());
  
              } catch (e) {
                  throw e;
              };
          }, 60000);
  
          res.json({ reddit: subreddit, discordChannel: discordChannel, activated: true});
  
      } else {
  
          console.log(&quot;stopping interval&quot;);
  
          clearInterval(interval);
          interval = null;
  
          res.json({ reddit: subreddit, discordChannel: discordChannel, activated: false});
      }
      
  });
  </code></pre>
  <p>What am I missing?</p>