title: Is using labels in JavaScript bad practice?
body: <p>I just found out about using label s in JavaScript, such as:</p>
  
  <pre><code>for (var i in team) {
      if(i === "something") {
          break doThis: //Goto the label
      } else {
          doThat();
      }
  }
  
  doThis: //Label
  doIt();
  </code></pre>
  
  <p>I've not heard about this until now and I can't find much information online about it and I'm beginning to think there is a reason for that.</p>
  
  <p>It seems to me like this is similar to a <code>GOTO</code> statement in other languages and would be considered bad practice. Would I be right in assuming this?</p>