When does a browser stop executing a recursive function in javascript?
<p>I am a beginner in javascript. I was trying recursive function in javascript. </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;script type = "text/javascript"&gt;
function first(){
    document.write(" first");
    first();
}
first();
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Browser prints "first" for finite number of times. Why is that? Is there any specific mechanism to stop printing "first" after certain number of time? Is it browser specific?</p>
