Created
June 18, 2013 06:36
-
-
Save wwgist/5803102 to your computer and use it in GitHub Desktop.
JS: switch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch(n) | |
{ | |
case 1: | |
execute code block 1 | |
break; | |
case 2: | |
execute code block 2 | |
break; | |
default: | |
code to be executed if n is different from case 1 and 2 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment