Last Updated: February 25, 2016
·
342
· ehsanpo

The long ternary if-statement

var numberBasedOnA =
a < 5 ? 200 :
a < 7 ? 38 :
a < 11 ? 15 :
a < 15 ? 49 :
64;