DEV Community

Calvin
Calvin

Posted on

Reading Snippets [8]

Switch statements can make it easier to write programs with conditions.

An important element of a switch statement is 'break'. Without 'break', more than one case action may be executed.

Latest comments (0)