Skip to content

Commit 53c6eb7

Browse files
fix: return number type and fix indentation
1 parent c7c13a9 commit 53c6eb7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
19-
let bmi =weight/(height*height);
20-
return bmi.toFixed(1)}
21-
console.log(calculateBMI(88, 1.78));//27.8
19+
let bmi = weight / (height * height);
20+
return Number(bmi.toFixed(1));}
21+
console.log(calculateBMI(88, 1.78)); //27.8
2222

0 commit comments

Comments
 (0)