Tag Archives: break continue statement

JavaScript Break and Continue Statements

There are two special statements in JavaScript that can be used inside loops: break and continue. Break Statement We Use the break statement to terminate a loop, switch, or label statement. When we use break without a label, it terminates the innermost enclosing while, do-while, for, or switch immediately and transfers control to the following […]