- script.js
JavaScript
var food = 'borscht';
var eatDinner = function () {
console.log('I ate ' + food);
};
Result
Goalscompleted
- After the
eatDinnerfunction is declared, call this function. - Change the
foodvariable tosoupin the function body inside the console string output.
Comments