- script.js
JavaScript
var collectContainer = function () {
  var food = 'pasta';
  var eatDinner = function () {
    console.log('I ate ' + food);
  };
  return eatDinner;
};
Result
Goalscompleted
- After the collectContainerfunction is redefined, create a variableschoolkid.
- Indicate that the schoolkidvariable is equal to thecollectContainerfunction call.
- After that, output the schoolkidvariable to the console.
- After that call the resulting function: schoolkid().
Comments