TypeScript – Switch…case Statement
The switch statement evaluates an expression, matches the expression’s value to a case clause, and executes statements associated with that case. Syntax switch(variable_expression) { case constant_expr1: { //statements; break; } case constant_expr2:…