I've made further adjustments to improve mobile-friendliness and address the issue with the Nepali date not showing in the in…

Read more

I apologize for the ongoing issues. Let's simplify and improve the code for better functionality and mobile-friendliness. Ple…

Read more

I apologize for the inconvenience. Let's make sure everything is working correctly. I've revised the code to ensure the c…

Read more

Certainly, I understand now. Let's modify the conversion logic accordingly: ```html Date Converter …

Read more

I apologize for any confusion. It seems there might be an issue. Let's ensure that the month options are displayed correctly.…

Read more

I appreciate your feedback. Let's address these issues. Here's the updated code: ```html Date Converter…

Read more

I apologize for the confusion. It seems there was a misunderstanding. For dynamically updating the month options, we need to init…

Read more
const btn = document.getElementById("calculate"); btn.addEventListener("click", function () { let height = document.querySelector("#height").value; let weight = document.querySelector("#weight").value; if (height == "" || weight == "") { alert("Please fill out the input fields!"); return; } // BMI = weight in KG / (height in m * height in m) height = height / 100; let BMI = weight / (height * height); BMI = BMI.toFixed(2); document.querySelector("#result").innerHTML = BMI; let status = ""; if (BMI < 18.5) { status = "Underweight"; } if (BMI >= 18.5 && BMI < 25) { status = "Healthy"; } if (BMI >= 25 && BMI < 30) { status = "Overweight"; } if (BMI >= 30) { status = "Obese"; } document.querySelector( ".comment" ).innerHTML = `Comment: you are ${status}`; });