Category
BMI = weight(kg) / (height(m))². JavaScript captures the input values, performs the math, and uses if/else logic to determine the weight category, dynamically changing the background color of the result box (e.g., green for normal, red for obese).