4. introduction to functions in JS | ?my code rong?


How does a function work?
4. introduction to functions in JS

Oops, try again. You did not call foodDemand!

// Write your foodDemand function below.
// Last hint: In your reusable block of code, end each line
// with a semicolon (;)
var foodDemand = function( bacon ) {
console.log( "I want to eat" + " " + "foodDemand" );


04- Call the function and put in a specific food you want!

after these codes write a function call, such as: