Import else if(this.bmi >= 18.5 & this.bmi = 25 & this. The readers are suggested to use an editor while writing the code. Var height = parseInt(document.getElementById("height").value) ĭocument.getElementById("height-val").textContent = height + " cm" īmi = (weight / Math.pow( (height/100), 2 )).toFixed(1) Although a basic understanding of HTML and DOM ( Document Object Model ) will give you an edge. users body mass index based on weight and height - BMI-calculator/index.html at. BMI provides a reasonable estimate of body fat for most people. A high BMI is associated with an increased risk of chronic diseases such as heart disease, high blood pressure, and type 2 diabetes. Body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. BMI uses weight and height to estimate body fat. Var weight = parseInt(document.getElementById("weight").value) ĭocument.getElementById("weight-val").textContent = weight + " kg" Mayo Clinic BMI and waist circumference calculator. Var result = document.getElementById("result") ![]() ![]() I am facing error while implementing bmi in lwc.can anyone help me to convert this html file and js file in lwc itry to convert but getting some error.
0 Comments
Leave a Reply. |