Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript Switch Syntax

switch(condition){
    case 'value1' :
        //code
        [break;]
    case 'value2' :
        //code
        [break;]
    .......
    default :
        //code
        [break;]
}
Source by onecompiler.com #
 
PREVIOUS NEXT
Tagged: #Javascript #Switch #Syntax
ADD COMMENT
Topic
Name
1+5 =