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 029c9bc commit 658658eCopy full SHA for 658658e
Sprint-2/3-mandatory-implement/1-bmi.js
@@ -21,9 +21,9 @@ function calculateBmi(weight,height) {
21
22
function calculateBMI (weight,height) {
23
24
- let bmi = weight / (height*height)
+ const bmi = weight / (height*height)
25
26
- return bmi.toFixed(1)
+ return Math.round(bmi * 10) / 10;
27
28
}
29
0 commit comments