Stoping setInterval
<p>I am new to javaScript and wondering if anyone can share some insight.
I am playing around with "ID's" trying to get comfortable and such. I know jQuery has a really quick solution, but I want to know how to do it via js. PLEASE HELP!</p>

<pre><code>     var startTimer = function init(){
                var n = 0;
                var e = document.getElementById("output");
                var myTimer = setInterval (function() {e.innerHTML = n++;},100);
                // clearInterval(myTimer);
                if(myTimer === 10){
                    clearInterval(myTimer);
                    return;

                }
            }                  

           startTimer();
</code></pre>
