Temperature Code Golf puzzle discussion

I was wondering what were the functions for input that cg implemented to see if there was anything shorter too.

Actually, it exists already for a few language, you just need to create your own for Javascript, you can copy those to make your own. Here is the C++ one and that is the Haskell one