Can you put multiple cases in a switch statement?

A switch statement includes literal value or is expression based. A switch statement includes multiple cases that include code blocks to execute. A break keyword is used to stop the execution of case block. A switch case can be combined to execute same code block for multiple cases .

Sizin İçin Seçtik  Can I return from switch case JavaScript?

Leave a Reply

Your email address will not be published. Required fields are marked *