Help me in solving JS05 problem

My issue

why do i see nan obese

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 */

for(let i=0; i<=height.length; i++){
    const bmi=weight[i]/(height[i]*height[i]);

let bmicat;
if (bmi<18.5){
    bmicat="Underweight";
}else if(bmi>=18.5 && bmi<=24.9){
bmicat="normal weight";
}else if (bmi>=25&& bmi<=29.9){
    bmicat="overweight";
}else{
    bmicat="obese";
}    



console.log(bmi.toFixed(2) + " "+ bmicat);

}

Learning course: Web development using JavaScript
Problem Link: CodeChef: Practical coding for everyone