Skip to content

Commit c7c8f3a

Browse files
solving exercise 3-mandatory-implement 1-bmi.js
1 parent 292e899 commit c7c8f3a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,9 @@
1616

1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
19+
return weight / (height * height);
1920
}
21+
22+
console.log(calculateBMI(70, 1.73).toFixed(1)); // should return 23.4
23+
24+

0 commit comments

Comments
 (0)