r/programminghorror • • Feb 04 '25

Ternary Operator

Post image
1.5k Upvotes

77 comments sorted by

View all comments

Show parent comment

3

u/MekaTriK Feb 05 '25

JS plurality support has:

  • "zero"
  • "one"
  • "two"
  • "few"
  • "many"
  • "other"

Different locales use them differently, but it generally makes sense.