Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

multiple case switch javascript

switch (varName)
{
   case "afshin":
   case "saeed":
   case "larry": 
       alert('Hey');
       break;

   default: 
       alert('Default case');
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #multiple #case #switch #javascript
ADD COMMENT
Topic
Name
7+7 =