Can I use a case/switch statement with two variables?
Switch Case Statement in JavaScript
333
19-Jul-2021
Updated on 19-Jul-2021
Ethan Karla
20-Jul-2021Yes , you can use a two variables in a switch case statement.
Below example can describe you how to use this condition in you javascript code.
Hope this information has cleared your confusion.
Happy Coding!