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