How to use case-insensitive switch-case in JavaScript?

To use case-insensitive switch-case in JavaScript, make the input all upper or all lowercase.

Example

You can try to run the following code to learn how to use a case-insensitive switch:


   
      

JavaScript Strings

     

         


Updated on: 2020-01-03T06:20:08+05:30

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements