+ 3
Why isnt the break statement working in js?
3 Réponses
+ 12
Break statement works inside a loop not in a conditional. If is not a loop. U don't need else statement in your code. Just leave if statement and Ur work will be done.
+ 4
Ok thanks
+ 4
I changed it to a for loop