This forum is now read-only. Please use our new forums at

Control Flow: Switch Forum

View Course » View Exercise

258 points
Submitted by
about 3 years ago

i don't understand this at all

i don't know what a switch is i don't know what a break is & what is default & why & when would they / are they used

it never explained it to begin with & it expects me to use it.

1 vote


switch is multiple "if"s in one.
break ends case, so it don't try to do code in rest of cases
and defauld is what is done if all cases can't do their part of code

256 points
Submitted by
about 3 years ago