-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathBMI.js
54 lines (48 loc) · 879 Bytes
/
BMI.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* Calculate BMI
* - takes a weight in KG
* - takes a height in cm
* - returns the calculated BMI
*/
function calculateBMI(weight, height) {
/**
* Write your code here 👇🏼
*/
const BMI = 0;
/**
* Stop making changes here!
*/
return BMI;
}
/**
* Get BMI State
* - takes the BMI
* - returns a string with the BMI state
*/
function getBMIState(BMI) {
/**
* Write your code here 👇🏼
*/
let BMIState;
/**
* Stop making changes here!
*/
return BMIState;
}
/**
* Get BMI State by Age
* - takes the BMI
* - takes the age
* - returns a string with the BMI state
*/
function getBMIStateByAge(BMI, age) {
/**
* Write your code here 👇🏼
*/
let BMIState = "not healthy";
/**
* Stop making changes here!
*/
return BMIState;
}
module.exports = { calculateBMI, getBMIState, getBMIStateByAge };