Skip to content

Commit 75f7994

Browse files
committed
BMI calculator
1 parent 0443b0b commit 75f7994

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
@@ -16,4 +16,6 @@
1616

1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
19-
}
19+
return (weight / Math.pow(height, 2)).toFixed(1)
20+
}
21+
console.log(calculateBMI(56, 1.60))

0 commit comments

Comments
 (0)