Ontra Interview Question

Build a unit converter in javascript