Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how use multi things in in switch case in js

let text = "hello";
switch(text){
  case "hello": 
  case "hi":
  case "hey":
    //some code
  break;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multi #switch #case #js
ADD COMMENT
Topic
Name
3+5 =