Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

5 of 6
Commonmark migration

Javascript (ES6) (削除) 50 (削除ここまで) 44 Bytes (non-competing)

a=>a+=[,"st","nd","rd"][a.match`1?.$`]||"th"

Notes

  • takes imput as a string
  • Removed 6 bytes, thanks @user81655
Shaun H
  • 812
  • 6
  • 10

AltStyle によって変換されたページ (->オリジナル) /