DEV Community

JEGADESHWARAN B
JEGADESHWARAN B

Posted on

Break statement

Initial

The break statement stops execution.
It exits from loop or switch.

Depth

Control moves to the next statement after the loop.
It prevents unnecessary execution.

More Depth

Commonly used in switch and loops.

Final

The break statement terminates the current block.

Top comments (0)