The switch can includes multiple cases where each case represents a particular value . Code under particular case will be executed when case value is equal to the return value of switch expression. If none of the cases match with switch expression value then the default case will be executed.
Read moreCan a switch case have multiple values?
The switch can includes multiple cases where each case represents a particular value . Code under particular case will be executed when case value is equal to the return value of switch expression. If none of the cases match with switch expression value then the default case will be executed.
Read more