- 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
eatDinner
function is declared, call this function with the argument'tea'
. - After this function is called, output the string
'I ate ' + food
to the console. - Replace the string with
'I drank ' + drink
in this console output.
Comments