Skip to content

Commit d9257c2

Browse files
committed
Create function to calculate BMI
1 parent d311b62 commit d9257c2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

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

1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
19+
return (weight / height ** 2).toFixed(1);
1920
}

0 commit comments

Comments
 (0)