Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Switch Case Statement in JavaScript

switch(x){
    case value1: // if x === value1 
     ...      
        break;
    case value2: // if x === value2
        ...
        break;   
    default: // if x not match 
        ...
}
Source by www.cluemediator.com #
 
PREVIOUS NEXT
Tagged: #Switch #Case #Statement #JavaScript
ADD COMMENT
Topic
Name
9+2 =