- script.js
JavaScript
console.log('Brekkie-meter v0.1 is launched');
Result
Goalscompleted
- Declare variable
milkInGrams, - use it to save data from the
muffin.askcommand with the question “Boss, how many grams of milk have you had?” - Send the following message made of three parts to the console by joining the string
'Brekkie-meter has received milk data. Consumed ', the variablemilkInGrams, and the string' grams.'.
Comments