This statement is another control-flow statement that can replace multiple if statement.
Key words are switch and cases
The default is if there is a match it keeps going until break.
To add Colt says this statement is not very common and is not used offend but it’s there to be demonstrated.
Switch statement
zakariyesahid96
Comments