Ontra interview question

Build a unit converter in javascript