- script.js
JavaScript
console.log('Brekkie-meter v0.1 is launched');
Result
Goalscompleted
- On the second line, declare variable
milkInGrams
. - On the next line, assign the value of the
muffin.ask
command to this variable with the question “Boss, how many grams of milk have you had?”. - On the next line, log the text hint “Brekkie-meter has received milk data: ” in the console.
- On the last line, output the variable to the console.
Comments