Switch statement
- zakariyesahid96
- Jan 29, 2022
- 1 min read
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.
Commentaires