title: Make JavaScript interval synchronize with actual time
body: <p>I want to make the seconds synchronize with the real time (<code>new Date()</code>) seconds, so that it would work if the page was loaded mid second.</p>
  
  <pre><code>setInterval(() =&gt; {
      console.log("hey im not synchronized");
  }, 1000);
  </code></pre>
  
  <p>Is that possible?</p>