Challenge nr. 192


#1

Why in challenge “Selecting from many options with Switch Statements” it needs break statement if return breaks the code ?


#2

It depends on what you need.

If I found what I needed in a Switch Statement then I need to BREAK to leave the Switch Statement. If you don’t do this, it will go on. break makes you leave when the “mission’s accomplished”.