Skip to content

Commit eae3b79

Browse files
committed
Completed 1-bmi.js exercise
1 parent c929c3c commit eae3b79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
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+
const result = weight / Math.pow(height, 2);
20+
return result.toFixed(1);
1921
}

0 commit comments

Comments
 (0)