1-30 in Scheme, Haskell and JavaScript