Remove kmphToMph
This commit is contained in:
@ -1,17 +0,0 @@
|
|||||||
---
|
|
||||||
title: kmphToMph
|
|
||||||
tags: math,beginner
|
|
||||||
---
|
|
||||||
|
|
||||||
Convert kilometers/hour to miles/hour.
|
|
||||||
|
|
||||||
Multiply the constant of proportionality with the argument.
|
|
||||||
|
|
||||||
```js
|
|
||||||
const kmphToMph = (kmph) => 0.621371192 * kmph;
|
|
||||||
```
|
|
||||||
|
|
||||||
```js
|
|
||||||
kmphToMph(10); // 16.09344000614692
|
|
||||||
kmphToMph(345.4); // 138.24264965280207
|
|
||||||
```
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
const {kmphToMph} = require('./_30s.js');
|
|
||||||
|
|
||||||
test('kmphToMph is a Function', () => {
|
|
||||||
expect(kmphToMph).toBeInstanceOf(Function);
|
|
||||||
});
|
|
||||||
test('Returns mph from kph.', () => {
|
|
||||||
expect(kmphToMph(10)).toBe(6.21371192);
|
|
||||||
});
|
|
||||||
Reference in New Issue
Block a user