Skip to content

Instantly share code, notes, and snippets.

@jhs
Created January 17, 2012 02:39
Show Gist options
  • Save jhs/1624221 to your computer and use it in GitHub Desktop.
Save jhs/1624221 to your computer and use it in GitHub Desktop.
Useful semicolons
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