Skip to content

Commit 8416a21

Browse files
committed
Updated bmi task of mandatory debug
1 parent 925895f commit 8416a21

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

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

1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
19-
return (weight/(height**2)).toFixed(1);
19+
const bmi = weight / (height * height);
20+
return bmi.toFixed(1);
2021
}

0 commit comments

Comments
 (0)