Skip to content

Commit acaa7de

Browse files
committed
Implement error handling clause for height parameter
1 parent feee6ba commit acaa7de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ function calculateBMI(weight, height) {
2323
return bmi.toFixed(1); // rounds 'bmi' to 1 decimal place and converts to a string
2424
// return the BMI of someone based off their weight and height
2525
}
26-
console.log(`The Body Mass Index is: ${calculateBMI(70, 1.73)}`);
26+
console.log(`The Body Mass Index is: ${calculateBMI(70, )}`);

0 commit comments

Comments
 (0)