Skip to content
Advertisement

How do I use a char as the case in a switch-case?

How do I use a character in a switch-case? I will be getting the first letter of whatever the user inputs.

JavaScript

Advertisement

Answer

JavaScript
Advertisement