title: Change document title every x seconds in JavaScript
body: <p>I want to change the title of my HTML page every second with JavaScript.</p>
  
  <p>First the title will be "Hold on.", after one second it will be "Hold on.." and then after one second "Hold on...". After that it has to loop the same thing over and over again</p>
  
  <p>I already tried this but that didn't work:</p>
  
  <pre><code>setTimeout(() =&gt; { document.title = "Hold on."; }, 1000);
  setTimeout(() =&gt; { document.title = "Hold on.."; }, 1000);
  setTimeout(() =&gt; { document.title = "Hold on..."; }, 1000);
  </code></pre>
  
  <p>I hope you can help me.</p>