JavaScript relational operators don't work the way your code implies they should. You have to do two separate comparisons connected with &&
else if (200 > calorie_total && calorie_total > 100)
In this particular case, you don't really need to do that. If you make it to the else
, then that means "calorie_total" must not be less than or equal to 100. In fact, this code won't do anything if "calorie_total" is exactly 100!