0 added
0 removed
Original
2026-01-01
Modified
2026-03-09
1
<ul><li>script.js</li>
1
<ul><li>script.js</li>
2
</ul><p>JavaScript</p>
2
</ul><p>JavaScript</p>
3
<p>var milkInGrams = 50;</p>
3
<p>var milkInGrams = 50;</p>
4
<p>Thanks! We’ll fix everything at once!</p>
4
<p>Thanks! We’ll fix everything at once!</p>
5
<h2>Result</h2>
5
<h2>Result</h2>
6
<ol><li>Calculate the caloric value of Muffin’s breakfast. To do this, save the result of the milkInGrams * (42 / 100) expression in variable breakfastCalories</li>
6
<ol><li>Calculate the caloric value of Muffin’s breakfast. To do this, save the result of the milkInGrams * (42 / 100) expression in variable breakfastCalories</li>
7
<li>and then log breakfastCalories variable in the console.</li>
7
<li>and then log breakfastCalories variable in the console.</li>
8
<li>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 the dryFeedInGrams variable (1 gram of food contains around 4 calories).</li>
8
<li>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 the dryFeedInGrams variable (1 gram of food contains around 4 calories).</li>
9
<li>Output the dryFeedInGrams variable to the console.</li>
9
<li>Output the dryFeedInGrams variable to the console.</li>
10
</ol>
10
</ol>