Skip to content

Commit 138d0a2

Browse files
committed
Check function works for calculateBMI
1 parent 6e6c005 commit 138d0a2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
1919
const bmi = (weight / height **2);
2020
return bmi.toFixed(1);
21-
}
21+
}
22+
23+
console.log(calculateBMI(90, 1.80));

0 commit comments

Comments
 (0)