- script.js
JavaScript
console.log('Brekkie-meter v0.1 is launched');
var milkInGrams = muffin.ask('Boss, how many grams of milk have you had?');
console.log('Brekkie-meter has received milk data. ' + milkInGrams + ' grams consumed.');
Result
Goalscompleted
- Declare variable
breakfastCalories
, - use it to save the result calculated with the formula described in the theory section.
- Log in the console a message made up of three fragments: string
'Calorific value of breakfast: '
, variablebreakfastCalories
, line' calories, boss!'
.
Comments