- script.js
JavaScript
var eatDinner = function (drink) {
var food = 'cutlets';
console.log('I ate ' + food);
console.log('I drank ' + drink);
};
Result
Goalscompleted
- Below that, after the
eatDinnerfunction is declared, call this function with the argument'tea'. - After this function is called, output the string
'I ate ' + foodto the console. - Replace the string with
'I drank ' + drinkin this console output.
Comments