We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9190a03 commit 2d292bbCopy full SHA for 2d292bb
Sprint-2/3-mandatory-implement/1-bmi.js
@@ -21,7 +21,7 @@ function calculateBMI(weight, height) {
21
// calculate the BMI
22
const BMI = weight / heightSquared;
23
// return the BMI to 1 decimal place
24
- return BMI.toFixed(1);
+ return parseFloat(BMI.toFixed(1));
25
}
26
let weight = 70; // in kg
27
let height = 1.73; // in meters
0 commit comments