- script.js
JavaScript
var milkInGrams = 50;
Result
Goalscompleted
- Calculate the caloric value of Muffin’s breakfast. To do this, save the result of the
milkInGrams * (42 / 100)
expression in variablebreakfastCalories
- and then log
breakfastCalories
variable in the console. - Find out how many grams of food Muffin can eat for lunch and dinner if his daily limit is
500
calories. In order to do that, save the result of the(500 - breakfastCalories) / 4
expression to thedryFeedInGrams
variable (1 gram of food contains around 4 calories). - Output the
dryFeedInGrams
variable to the console.
Comments