/

HTML / CSS / JavaScript Tutorial

JavaScript Statement: break

[this page | pdf | back links]

In JavaScript, the break statement breaks an iteration (in a loop) if a specific condition occurs, moving to the next statement after the entire iteration (or when used inside a switch statement it moves on to the next statement after then entire switch statement).

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript Reserved Words


Desktop view | Switch to Mobile