Skip to content

Commit c56be30

Browse files
authored
Fix comment formatting in calculateBMI function
1 parent 705c3e2 commit c56be30

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
//
1717
function calculateBMI(weight, height) {
1818
let bmi = weight / (height **2 )// weight divided by height squared.
19-
return `Your Body Mass Index is ${bmi.toFixed(1)} units`// toFixed(1) insures that result is displayed
20-
// with 1 decimal point
21-
}
22-
console.log(calculateBMI(87, 1.86))
19+
return `Your Body Mass Index is ${bmi.toFixed(1)} units`// toFixed(1) insures that result is displayed with 1 decimal place
20+
}
21+
//
22+
console.log(calculateBMI(87, 1.86))

0 commit comments

Comments
 (0)