Skip to content

Commit 90ae34a

Browse files
committed
Made fixes to the code to remove fixed values in 1-bmi.js
1 parent 4f61c5c commit 90ae34a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616

1717
function calculateBMI(weight, height) {
1818
let squaring=height * height;
19-
return (70 / squaring).toFixed(2);
19+
return (weight / squaring).toFixed(2);
2020

2121
}
2222

23-
console.log(calculateBMI(100, 1.85))
23+
console.log(calculateBMI(100, 1.85));
24+
console.log(calculateBMI(80, 1.75));

0 commit comments

Comments
 (0)