My issue
i cant solve this
My code
const height = [1.70, 1.65, 1.80, 1.60, 1.75];
const weight = [30, 55, 90, 102, 65];
/* Using these 5 users find the BMI */
/* Update your code below this line */
function bmi(heighti, widthi){
let check = widthi % (heighti * heighti) ;
if (check <= 18.5 ) {
console.log("Underweight");
}
else if (check > 18.5 && check <= 24.9) {
console.log("Normal Weight");
}
else if (check > 25 && check <= 29.9) {
console.log("Overweight");
}
else if (check >= 30 ) {
console.log("Obese");
}
}
bmi(height,weight)
Learning course: Web development using JavaScript
Problem Link: BMI Calculator Practice Problem in Web development using JavaScript - CodeChef