Why does this Javascript code inside a non-Javascript browser have extra commenting?
<p>On the <a href="http://www.w3schools.com/js/js_howto.asp" rel="nofollow">W3 tutorial</a>, it shows htis code:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;
&lt;script type="text/javascript"&gt;
&lt;!--
document.getElementById("demo").innerHTML=Date();
//--&gt;
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Then it says: </p>

<blockquote>
  <p>The two forward slashes at the end of comment line (//) is the
  JavaScript comment symbol. This prevents JavaScript from executing the
  --> tag.</p>
</blockquote>

<p>This doesn't make sense to me. I thought the whole thing got commented out. </p>
