Add an ordinal suffix (1st, 2nd, 3rd, ...) to a number in Javascript
Sohail · · 3661 Views
Ordinal numbers convey information about the order of elements in a set. They show rank or position. For example: 1st, 2nd, 3rd, ...
1
You may also like:
I'd personally go with something simpler like: