Skip to content

Commit b2474fc

Browse files
author
Kyle Maune
committed
added conversion for kph to mph
1 parent ef058e3 commit b2474fc

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

convertKPHMPH.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// kph to mph
2+
// splashinn
3+
4+
function convert(speed) {
5+
return speed/1.609344;
6+
}
7+
console.log(convert());
8+
9+
// mph to kph
10+
11+
function convert2(speed) {
12+
return speed * 1.609344;
13+
}
14+
console.log(convert());

0 commit comments

Comments
 (0)