Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js switch case

switch(expression) {
  case x:
    // code block
    break;
  case y:
    // code block
    break;
  default:
    // code block
}
 
PREVIOUS NEXT
Tagged: #js #switch #case
ADD COMMENT
Topic
Name
4+2 =