title: issue with counter, javascript
body: <p>I want to make a counter that will count(and add up) each second. I'm trying to do it with the timing events but it doesn't work</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;script type="text/javascript"&gt;
              var i=0;
              function Time(){
                  seconds = setInterval(function(){
                      i++;
                  }, 1000);
                  return {label:seconds};
              }
              console.log(setTimeout(Time, 1000));
          &lt;/script&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>it just shows the first iteration and also it starts from 2 instead of 1...</p>