MCPcopy Create free account
hub / github.com/AyushSaini00/60minuteJavaScript / calcBMI

Function calcBMI

BMI-Calculator/app.js:11–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9//CALCULATING BMI
10let bmiMetric;
11function calcBMI(){
12 let weight = weightElem.value;
13 let height = heightElem.value;
14 let bmi = weight / (height * height); // bmi in kg/cm*cm
15 bmiMetric = (bmi * 10000).toFixed(1); //bmi in kg/m*m rounded to 1 decimal
16 // console.log(bmiMetric);
17}
18
19//DESCRIPTION ACCORDING TO BMI CATEGORY
20function checkCategory(value){

Callers 1

updateUIFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected