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