title: JavaScript illegal break statement?
body: <p>All I have is </p>
  
  <pre><code>        if (arr.length == 0)
          {
              document.getElementById("input_table").innerHTML += "&lt;p&gt;Can't sort an empty array, bro!&lt;/p&gt;";
              break;
          }
  </code></pre>
  
  <p>and I'm getting an <code>"Uncaught SyntaxError: Illegal break statement"</code> error from my Chrome console.</p>
  
  <p>I don't think I need to post my entire code, since context is irrelevant here. </p>