Does return break a switch case?

Yes, you can use return instead of break … break is optional and is used to prevent “falling” through all the other case statements. So return can be used in a similar fashion, as return ends the function execution.

Sizin İçin Seçtik  What is SaaS financial model?

Leave a Reply

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