Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

switch case javascript

int value = 0;
switch (value) {
  case 0:
    // do something
    break;
  case 1: 
    // do something else
    break;
   
  default :
  	// something if anything not match
}
 
PREVIOUS NEXT
Tagged: #switch #case #javascript
ADD COMMENT
Topic
Name
6+2 =