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 c845780 commit 71034f4Copy full SHA for 71034f4
Sprint-2/3-mandatory-implement/1-bmi.js
@@ -18,13 +18,12 @@ function calculateBMI(weight, height) {
18
// return the BMI of someone based off their weight and height
19
const squareHeight = height * height;
20
const operation = weight / squareHeight;
21
- console.log(operation);
22
-
23
const bmi = Math.round(operation * 10) / 10;
24
25
return bmi;
26
}
27
+
28
console.log(calculateBMI(70, 1.73));
29
30
0 commit comments