Break and Continue in JavaScript
Break
break statement "jump out" of a loop and continue executing the code after the loop. Another way to break the loop is by returning the value. It will also break the loop.
Continue
continue statement breaks only one iteration in the loop, and continues with the next iteration.
Syntax:-
switch(case){
case "condition_1":
// code here will be executed
break;
case "condition_2":
// code here will be executed
break;
case "condition_3":
// code here will be executed
break;
default:
// default code will be executed
}