Design a BMI Calculator using JavaScript
Ahtsham Ajus
Posted on June 23, 2021
The Body Mass Index (BMI) Calculator can be used to calculate BMI values based on their height and weight. BMI is a fairly reliable indicator of body fatness for most people.
Formula:
BMI = (weight) / (height * height)
Here's JavaScript code
function BMI(weight, height) {
return(weight / (height * height));
}
let bmiResult = BMI(57, 1.73736);
console.log(bmiResult);
đź’– đź’Ş đź™… đźš©
Ahtsham Ajus
Posted on June 23, 2021
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.