Skip to content

Commit 21e0b3a

Browse files
committed
completed 3-mandatory-implement/1-bmi.js
1 parent 0a40c26 commit 21e0b3a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,7 @@
1616

1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
19-
}
19+
let bmi = weight / (height * height);
20+
return bmi.toFixed(1)
21+
}
22+
console.log(calculateBMI(95, 1.78))

0 commit comments

Comments
 (0)