Answers for "can i use pipe in switch statement javascript"

0

can i use pipe in switch statement javascript

switch(type){
    case "PNG":
    case "JPG": 
    case "JPEG": 
       alert("works");
       break;
    default:
       alert("not working");
       break;
}
Posted by: Guest on August-12-2021

Code answers related to "can i use pipe in switch statement javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language