what is break does and what is continue does work in java script example? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is break does and what is continue does work in java script example?

java script

23rd Aug 2020, 6:50 PM
Ziyad Aldoumany
Ziyad Aldoumany - avatar
2 Answers
+ 3
This will help you to understood the concepts of break and continue https://www.w3schools.com/js/js_break.asp
23rd Aug 2020, 6:59 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
Much like in any other language. Continue breaks the cycle and goes to the next one (so it kind of "skips" the current step), whilst break exits the loop, immediately. https://www.sololearn.com/learn/JavaScript/1143/
23rd Aug 2020, 6:58 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar