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


#1



How does a function work?
4. introduction to functions in JS
https://www.codecademy.com/courses/javascript-beginner-en-6LzGd/0/4?curriculum_id=506324b3a7dffd00020bf661#

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" );
}


#2

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

after these codes write a function call, such as:
foodDemand(""sushi!!!")