Skip to content

Commit 321dd76

Browse files
committed
converted bmi to number
1 parent 2dd4f45 commit 321dd76

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
@@ -17,7 +17,7 @@
1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
1919
const bmi = weight / height ** 2;
20-
return bmi.toFixed(1);
20+
return Number(bmi.toFixed(1));
2121
}
2222

2323
console.log(`Your BMI is ${calculateBMI(70, 1.73)}`);

0 commit comments

Comments
 (0)