Skip to content

Commit ebc33cc

Browse files
committed
docs: add unit specifications (kg and meters) to calculateBMI comments based on review
1 parent 9d65271 commit ebc33cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@
1313
// Given someone's weight in kg and height in metres
1414
// Then when we call this function with the weight and height
1515
// It should return their Body Mass Index to 1 decimal place
16-
16+
/**
17+
* Calculates the Body Mass Index (BMI).
18+
* @param {number} weight - The weight in kilograms (kg).
19+
* @param {number} height - The height in meters (m).
20+
*/
1721
function calculateBMI(weight, height) {
1822
// return the BMI of someone based off their weight and height
1923
let bmi = weight / (height * height);

0 commit comments

Comments
 (0)