title: Javascript - Breaking Infinite Loop?
body: <p>Is it possible to do something like this, and end a seemingly infinite loop once a condition is met?  When I attempt it, it crashes my browser as an infinite loop should.  Is there another way to do this or is it not possible?</p>
  
  <pre><code>var nL=true;
  while(nL){
      if(/* Condition */){
          nL=true;     
          break;
      }
  }
  </code></pre>