Skip to content

Commit 36a1167

Browse files
Address Sprint 2 review comments
1 parent 87642d5 commit 36a1167

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
// Given someone's weight in kg and height in metres
1414
// Then when we call this function with the weight and height
1515
// It should return their Body Mass Index to 1 decimal place
16+
// Return BMI as a number
1617

1718
function calculateBMI(weight, height) {
18-
return (weight / (height * height)).toFixed(1);
19+
return Number((weight / (height * height)).toFixed(1));
1920
}

0 commit comments

Comments
 (0)