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 87642d5 commit 36a1167Copy full SHA for 36a1167
1 file changed
Sprint-2/3-mandatory-implement/1-bmi.js
@@ -13,7 +13,8 @@
13
// Given someone's weight in kg and height in metres
14
// Then when we call this function with the weight and height
15
// It should return their Body Mass Index to 1 decimal place
16
+// Return BMI as a number
17
18
function calculateBMI(weight, height) {
- return (weight / (height * height)).toFixed(1);
19
+ return Number((weight / (height * height)).toFixed(1));
20
}
0 commit comments