export const getBMICategory = (bmi) => {
if(bmi < 18.6){
return "Underweight"
} else if(bmi > 18.5 && bmi < 25) {return "Normal weight"}
else if(bmi < 30) {return "Overweight"}
else if(bmi > 29.99) {return "Obesity"}
}
I have no idea what's wrong in my solution cause when i'm running code, everything is ok, but task doesn't submitting with following issue(all another terms are correct):
getBMICategory should return Normal weight if bmi is greater than 18.5 and less than 25