Skip to content

Commit 0a6de7a

Browse files
fixed prettier on 3.1.js
1 parent b365bea commit 0a6de7a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
// It should return a string of their Body Mass Index to 1 decimal place
1616

1717
function calculateBMI(weight, height) {
18-
// return the BMI of someone based off their weight and height
19-
let squared_height = height * height;
20-
const bmi = weight/squared_height;
21-
return bmi.toFixed(1);
18+
// return the BMI of someone based off their weight and height
19+
let squared_height = height * height;
20+
const bmi = weight / squared_height;
21+
return bmi.toFixed(1);
2222
}
23-
console.log(`The BMi of the person is ${calculateBMI(70,1.73)}`);
24-
// The output of the program is 'The BMi of the person is 23.4'.
23+
console.log(`The BMi of the person is ${calculateBMI(70, 1.73)}`);
24+
// The output of the program is 'The BMi of the person is 23.4'.

0 commit comments

Comments
 (0)