There was an error while loading. Please reload this page.
1 parent fe28db6 commit 6a25d50Copy full SHA for 6a25d50
1 file changed
Sprint-3/3-mandatory-implement/1-bmi.js
@@ -16,4 +16,10 @@
16
17
function calculateBMI(weight, height) {
18
// return the BMI of someone based off their weight and height
19
+ return (weight / (height* height)).toString().slice(0,4);
20
+
21
}
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