title: Is there a way of making a faster updating function
body: <p>I'm making an idle game to get my javascript skills better but i cant seem to find a way to update my numbers faster my current code is this</p>
  
  <p><code>&lt;div id="plastic"&gt;&lt;/div&gt;</code></p>
  
  <pre><code>var plasticCount = setInterval(() =&gt; { 
      document.getElementById('plastic').innerHTML = plasticCount;
  }, 1000);
  </code></pre>
  
  <p>This might not be the exact way I had it but it is close. The point I'm trying to say is that it updates here every second but it isn't fast enough for an idle game. I'm looking for a way to update it extremely quickly to update the number so it doesn't feel as slow</p>