Utilizor
Contact Us

Default Case

Handling no match.

Default Case

The default keyword specifies the code to run if there is no case match.

The default case does not have to be the last case in a switch block.

Example

default:
  text = "Looking forward to the Weekend";