- script.js
JavaScript
var milkInGrams = 50;
var waterInGrams = 100;
Result
Goalscompleted
Send the results of operations with variables to the console but don’t change the values of variables.
- Add up two variables to get the total amount of liquid that Muffin drank.
- Multiply
milkInGrams
by0.03
to calculate the amount of protein. - Divide
milkInGrams
by20
to calculate the amount of carbs. - Subtract
150
from the sum of variables to calculate the deviation from the daily norm.
Comments