The long ternary if-statement
var numberBasedOnA =
a < 5 ? 200 :
a < 7 ? 38 :
a < 11 ? 15 :
a < 15 ? 49 :
64;
Written by Ehsan Pourhadi
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Related Tags
#ternary
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#