Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

switch javascript

switch(val) {
  case 1:
    // code
    break;
  case 2:
    // code
    break
}
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #switch #javascript
ADD COMMENT
Topic
Name
4+1 =