Unit conversion without a library: length, weight, and temperature in JavaScript
Converting units seems trivial until you need to do it correctly. Multiply by a factor? That works for length — meters to feet, kilometers to miles — but temperature needs an offset, not just a multip
Oct 12, 20264 min read
