Why does this while loop make the browser crash?
<p>I'm trying to compare the differences between similar snippets with javascript and C++. Here's my snippet:</p>

<pre><code>var i = 0;

while (i&lt;=10)
{
    document.write('Hello&lt;br /&gt;');
    //i++;
}
</code></pre>

<p>With C++, if I write an equivalent snippet, I recall the console prints that line forever until I enter Ctrl + C. However, with Javascript, if I try to open the browser, it would crash. Does it have to do with the browser trying to load that "Hello" line forever until I force quit?</p>
