Created
March 31, 2009 20:29
-
-
Save trey/88393 to your computer and use it in GitHub Desktop.
Switch statement in JavaScript.
This file contains 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(id){ | |
case "previous": | |
// something | |
break; | |
case "next": | |
// something | |
break; | |
default: | |
// something | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment