Skip to content

Commit 3c8783e

Browse files
committed
BMI calculator function
1 parent 595728f commit 3c8783e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
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+
return (weight / (height * height)).toFixed(1)
1920
}
21+
console.log(calculateBMI(70, 1.73))

0 commit comments

Comments
 (0)