Skip to content

Instantly share code, notes, and snippets.

@dannyfritz
Forked from coverslide/multi-line-ternary.js
Last active December 10, 2015 14:38
Show Gist options
  • Save dannyfritz/4448448 to your computer and use it in GitHub Desktop.
Save dannyfritz/4448448 to your computer and use it in GitHub Desktop.
var age_group =
age > 70 ? 'se' :
age > 60 ? 'si' :
age > 50 ? 'fi' :
age > 40 ? 'fo' :
age > 30 ? 'th' :
age > 20 ? 'tw' :
'un';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment