Monday, October 22, 2018

node.js - how to Break a For loop which has if statement in Nodejs

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?



for(i=0;i<5;i++){
if(i==2){
break;
}
}

No comments:

Post a Comment

plot explanation - Why did Peaches&#39; mom hang on the tree? - Movies &amp; TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...