Other programming languages such as JavaScript employ switch statements, which is a code block where a value is matched against a set of cases. When a case is matched, the code within that block (and ...