Can we use switch case in JavaScript?

The switch case statement in JavaScript is also used for decision making purposes . In some cases, using the switch case statement is seen to be more convenient over if-else statements. Consider a situation when we want to test a variable for hundred different values and based on the test we want to execute some task.25 Oca 2022

Sizin İçin Seçtik  Can we use or condition in switch case in Java?

Leave a Reply

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