title: how to Break a For loop which has if statement in Nodejs
body: <p>i have scenario where an IF statement is inside FOR loop. i want to break the FOR loop inside IF statement , how to achieve it?</p>
  
  <pre><code>for(i=0;i&lt;5;i++){
     if(i==2){
       break;
     }
  }
  </code></pre>