Fantastic! Switch statements look for matches in the cases we define with the case
keyword. At the end of a case, we use break
to exit the statement.
Psst: the default case, which uses the default
keyword, is triggered if none of the other cases are a match.
We've talked enough about if
, haven't we?