This is a playground to test JavaScript. It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm’s 300,000+ packages are pre-installed, so try it out:
// Part 1
f=
n=>[n,require("number-to-words").toWordsOrdinal]
// Part 2
g=
([n,F])=>{for(i=0;i<n;)console.log(F(++i))}