February 2019
Intermediate to advanced
204 pages
4h 52m
English
An example of calculating body mass index (BMI), provided the height (in meters) and weight (in kilograms), can be created via the following method. The function is stored in a variable named bmi and can be called whenever it is required:
const bmi = (weight, height) => weight / (height * height);
Read now
Unlock full access