+ 1
What is the benefit of break in JS
I mean if we want to stop the code after some time we can make a loop till there only What's the need to break
6 Respostas
+ 2
Raghubir Yadav , what if we don't know how many times the loop should run and we want to break it only if certain condition is met?
+ 2
If you have to stop the loop for multiple condition we use break.Its very useful.
+ 1
I wanted to know what is the benefit
I mean we can simply make a loop till the ending which we want
Why to break in between
+ 1
in loop you can use multiple break statement .
+ 1
Thanks to all