4. how does a function work


#1

Can someone tell me what I'm doing wrong?;

// On line 11, call the greeting function!

var greeting = function (Sharon) {
console.log("Great to see you" + " " + Sharon);
};

Oops, try again. You did not call the greeting function. Pass it a name!


4 - How does a Function Work? Help please!
#2

You need the call function, after this code write:

greeting (1);


#3

Thank you for helping me out :slight_smile:


#4