title: Execute code every 10 seconds but start on 0 seconds too
body: <p>I want to execute code every 10 seconds, but also on page load. I mean I want the code to execute when the page loads initially then every 10 seconds. The following code only executes the code initially after 10 seconds.</p>
  
  <pre><code>window.setInterval(function(){
    /// call your function here
  }, 10000);
  </code></pre>
  
  <p>Thanks!</p>