Skip to content

Commit 120157a

Browse files
committed
Sprint 2 - 3 Mandatory implement - 3-to-pounds.js
Added the simple code for converting to pounds, using kilograms.
1 parent 7fe8f43 commit 120157a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Sprint-2/3-mandatory-implement/3-to-pounds.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@
44
// You will need to declare a function called toPounds with an appropriately named parameter.
55

66
// You should call this function a number of times to check it works for different inputs
7+
function toPounds(weight) {
8+
return (weight * 2.204);
9+
}
10+
11+
console.log(toPounds(70))

0 commit comments

Comments
 (0)