JavaScript Break Statement

Last Updated Jul 29, 2015, 07:00:14 PM

JavaScript Break Statement

The break statement terminates the current loop, switch, or label statement and transfers program control to the statement following the terminated statement.

The break statement includes an optional label that allows the program to break out of a labeled statement.

Try It Now

Other JavaScript loop statements you might want to learn

JavaScript while loop

JavaScript do while loop

JavaScript for loop

JavaScript continue statement

Practice with our Interactive Editor and take your JavaScript Skills to the next level
Exercise 1 Exercise 2 Exercise 3 Exercise 4 Exercise 5 Exercise 6

Browser compatibility
Break statement Yes Yes Yes Yes Yes Yes Yes

Sources and Credits

The source of the content has been referred and updated with Mozilla Developer Network and W3C Organization

Last Updated Jul 29, 2015, 07:00:14 PM