title: Clearing an anonymous setInterval
body: <p>How do you clear an anonymous setInterval function, like the following, so that <em>i</em> stops incrementing?</p>
  
  <pre><code>var i = 0;
  setInterval(function(){
      console.log(i);
      i++;
   }, 1000);
  
  
  
  </code></pre>