Skip to content

Commit 6a25d50

Browse files
committed
Wrote the code and tested
1 parent fe28db6 commit 6a25d50

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

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

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

1717
function calculateBMI(weight, height) {
1818
// return the BMI of someone based off their weight and height
19+
return (weight / (height* height)).toString().slice(0,4);
20+
1921
}
22+
console.log(`Your BMI is ${calculateBMI(79,1.73)} `);
23+
24+
//The out come is
25+
// Your BMI is 26.3

0 commit comments

Comments
 (0)