title: setInterval executes functions only by the time of the interval ends
body: <p>I have the next <strong>setInterval</strong> in JS which emits the <strong>test()</strong> function only by the time the 5s ends:</p>
  
  <pre><code>let interval = setInterval(() =&gt; {
    test()
  }, 5000)
  
  
  function test() {
    console.log("Test") // will be emitted only in 5s
  }
  </code></pre>
  
  <p>How can I tell the method to run the <strong>test()</strong> function without waiting?</p>