Skip to content

Commit 848c3a4

Browse files
committed
completed task in 3-mandatory-implement/1-bmi.js
1 parent 99d16a4 commit 848c3a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sprint-2/3-mandatory-implement/1-bmi.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,6 @@
1616

1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
19-
}
19+
return (weight / (height ** 2)).toFixed(1);
20+
}
21+
console.log(calculateBMI(70, 1.73));

0 commit comments

Comments
 (0)