Skip to content

Commit 4290aae

Browse files
the function was called and console to the screen with the two arguement and it worked
1 parent 47a68fd commit 4290aae

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@
1717
function calculateBMI(weight, height) {
1818
return`The BMI of someone with a weight of ${weight}kg and a height of ${height}m is ${(weight / (height * height)).toFixed(1)}`;
1919
// return the BMI of someone based off their weight and height
20-
}
20+
}
21+
console.log(calculateBMI(70, 1.73)); // should return 23.4

0 commit comments

Comments
 (0)