Skip to content

Instantly share code, notes, and snippets.

@samueljoli
Created January 30, 2017 17:58
Show Gist options
  • Save samueljoli/80cf276144475c14be3d10f89929560d to your computer and use it in GitHub Desktop.
Save samueljoli/80cf276144475c14be3d10f89929560d to your computer and use it in GitHub Desktop.
/more psuedo-JS... yay!
var switchVal = 2;
switch(switchVal) {
case 0:
console.log('I like 0');
break;
case 1:
console.log('This is an arbitrary function');
break;
case 2:
console.log('2 is the smallest non-negative prime number');
break;
case 3:
console.log('One more for the show');
break;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment