- 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
breakfastCaloriesvariable in the console. - Find out how many grams of food Muffin can eat for lunch and dinner if his daily limit is
500calories. In order to do that, save the result of the(500 - breakfastCalories) / 4expression to thedryFeedInGramsvariable (1 gram of food contains around 4 calories). - Output the
dryFeedInGramsvariable to the console.
Comments