JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://code.jquery.com/jquery-2.2.3.min.js"></script>
<ul id='EnglishCount'>
</ul>
JavaScript
var i;
for(i = 1; i < 250; i++) {
$("#EnglishCount").append("<li>" + i+GetEnglishCount(i) + "</li>");
}
function GetEnglishCount(number) {
if([11,12,13].indexOf(number%100)+1)
return 'th'
switch(number%10){
case 1: return 'st'
case 2: return 'nd'
case 3: return 'rd'
}
return 'th'
}