261 B
261 B
kmphToMph
Convert kilometers/hour to miles/hour.
Multiply the constant of proportionality with the argument.
const kmphToMph = (kmph) => 0.621371192 * kmph;
kmphToMph(10); // 16.09344000614692
kmphToMph(345.4); // 138.24264965280207