Created
January 17, 2012 02:39
-
-
Save jhs/1624221 to your computer and use it in GitHub Desktop.
Useful semicolons
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
if(something_happened) { | |
// Do stuff because something happened. | |
do_stuff() | |
do_more_stuff() | |
} | |
else if(the_other_thing) | |
; // This situation is fine, but there is nothing to do. | |
else | |
throw new Error('Unknown situation') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment