- script.js
JavaScript
// Enter the program code below
Result
Goalscompleted
Write a program that calculates the nutritional value of Muffin’s lunch and dinner.
- To do this, enter line
80 * (400 / 100);
in the editor. - Beneath it, enter
120 * (400 / 100);
and take a look at the result in the console.
It turns out that 100 grams of his food contain around 400 calories.
Comments