Switch Statement in Typescript
The Typescript switch statement (or switch case statement) evaluates a given expression. It then matches the result of that expression with the values in the case clause. If it finds a match, then it executes the statements associated with that matching case clause. It also executes the statements in cases that follow the matching case. You can break out of a switch using the break statement or using the return statement