Skip to content

Instantly share code, notes, and snippets.

@hoosin
Created November 14, 2016 08:05
Show Gist options
  • Save hoosin/f6962f252d6ea08fd13e701ecb5dd061 to your computer and use it in GitHub Desktop.
Save hoosin/f6962f252d6ea08fd13e701ecb5dd061 to your computer and use it in GitHub Desktop.
var a = 0, b = true;
switch(true) {
case a:
alert('a');
break;
case b:
alert('b');
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment