Remove mphToKmph

This commit is contained in:
Angelos Chalaris
2020-04-16 11:04:51 +03:00
parent 80fda6d3fc
commit e099e8246e
2 changed files with 0 additions and 25 deletions

View File

@ -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
```

View File

@ -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);
});