Skip to content

Commit 9a911dd

Browse files
committed
improved task
1 parent 2f56348 commit 9a911dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
function calculateBMI(weight, height) {
1818
const bmi = weight / (height * height);
19-
return bmi.toFixed(1);
19+
return Number(bmi.toFixed(1));
2020
}
2121
console.log(calculateBMI(70, 1.73));
2222
// return the BMI of someone based off their weight and height

0 commit comments

Comments
 (0)