Skip to content

Commit 65daf85

Browse files
removed the template string to make the return value a number instead of a string
1 parent 5e3b5f6 commit 65daf85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// It should return their Body Mass Index to 1 decimal place
1616

1717
function calculateBMI(weight, height) {
18-
return` $ ${(weight / (height * height)).toFixed(1)}`;
18+
return (weight / (height * height)).toFixed(1);
1919
// return the BMI of someone based off their weight and height
2020
}
2121
console.log(calculateBMI(70, 1.73)); // should return 23.4

0 commit comments

Comments
 (0)