Example Javascript usage

Calculate your body mass index

This is a very small example of what you can do with Javascript. A more complex example is the shopping trolley

Your Body Mass Index (BMI) is a widely recognised means of determining whether your weight is within healthy limits for your height. It is calculated from the following formula:

BMI = weight / (height x height)

or, in English, your weight (in kilogrammes) divided by the square of your height (in metres).
To calculate your Body Mass Index enter your height and weight, then press the calculate button.

Metric     Imperial


       st  lb
   ft  in   

Your Body Mass Index  

A BMI of 18.5-25 is considered to be the normal range (= good). Lower than 18.5 indicates that you're underweight. 25-30 is overweight and over 30 is obese.
It must be stressed that there are many other factors to take into account. This is for adults not children. The results are not meaningful if (for example) you've only got one leg.

This is a Javascript demonstration and NOT medical advice.

Example Javascript usage

[top] [home] [contact]