Break and continue | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Break and continue

What is the difference between break and continue? Thank you in advance

29th Dec 2016, 12:53 PM
Erinda Kapllani
Erinda Kapllani - avatar
2 Answers
29th Dec 2016, 12:55 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 6
break stop the loop, continue just go for the next iteration.
29th Dec 2016, 1:26 PM
Nahuel
Nahuel - avatar