Design a BMI Calculator using JavaScript

ahtshamajus

Ahtsham Ajus

Posted on June 23, 2021

Design a BMI Calculator using JavaScript

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);
Enter fullscreen mode Exit fullscreen mode

Alt Text

đź’– đź’Ş đź™… đźš©
ahtshamajus
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.

Related