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 db3249a commit e03cac5Copy full SHA for e03cac5
Sprint-2/3-mandatory-implement/1-bmi.js
@@ -15,8 +15,11 @@
15
// It should return their Body Mass Index to 1 decimal place
16
17
function calculateBMI(weight, height) {
18
+
19
const bmi = weight / (weight*height);
20
return bmi.toFixed(1);
21
// return the BMI of someone based off their weight and height
22
}
-console.log("the BMI is", calculateBMI(70, 1.73));
23
24
+console.log(`the BMI is ${calculateBMI(80, 1.8)}`);
25
+//I expect the function will return a number and it does return a number.
0 commit comments