Skip to content

Commit f4b5d6a

Browse files
fixing exercise 1-bmi.js
1 parent f598953 commit f4b5d6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
19-
return weight / (height * height);
19+
return `${(weight / (height * height)).toFixed(1)}`;
2020
}
2121

22-
console.log(calculateBMI(70, 1.73).toFixed(1)); // should return 23.4
22+
console.log(calculateBMI(70, 1.73)); // should return 23.4

0 commit comments

Comments
 (0)