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=>H=>{for(i=0;i<n;)console.log(H(++i))}
// Part 2
g=
F=>F(require("number-to-words").toWordsOrdinal)