Skip to content

Commit e03cac5

Browse files
committed
updating the task's answer
1 parent db3249a commit e03cac5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
// It should return their Body Mass Index to 1 decimal place
1616

1717
function calculateBMI(weight, height) {
18+
1819
const bmi = weight / (weight*height);
1920
return bmi.toFixed(1);
2021
// return the BMI of someone based off their weight and height
2122
}
22-
console.log("the BMI is", calculateBMI(70, 1.73));
23+
24+
console.log(`the BMI is ${calculateBMI(80, 1.8)}`);
25+
//I expect the function will return a number and it does return a number.

0 commit comments

Comments
 (0)