Why do labels exist?
<p>Why do labels exist in javascript?  </p>

<pre><code>var i = 0;

usefulLabel://why do I exist?
while(i &lt;= 10){
    document.writeln(i);
    i++;
    if(i &gt; 5)
        break;// usefulLabel;
}
</code></pre>

<p>The above code doesn't appear to need a label at all (it works with or without the commented label name).  And Considering Douglas Crockford has not condemned them entirely:</p>

<p><a href="http://javascript.crockford.com/code.html" rel="nofollow">Labels</a></p>

<blockquote>
  <p>Statement labels are optional. Only these statements should be
  labeled: while, do, for, switch.</p>
</blockquote>

<p>Are they ever considered a good practice to implement?  To me, these things look eerily close to the infamous goto statement in some languages.</p>
