title: JavaScript Call function then call it after x seconds continuously
body: <p>Following calls a functions every 10 seconds.
  It does not call the function immediately, just after the first 10 seconds.</p>
  
  <pre><code>window.setInterval(function(){
    /// foo
  }, 10000);
  </code></pre>
  
  <p>How do I call the function first, then call it every x seconds, what would be the best way of doing this?</p>