Function Syntax help


#1


Replace this line with your code.


#2

Hi everyone i have looking for the solution science yesterday
i have tried everything please help

On line 11, call the greeting function and put in a name that you want the greeting function to include.
Press "Save & Submit Code" and see the function get into action! Saves you so much time.

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

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


#3

a function call is simply the function name + argument:

// function declaration
var example = function(parameter){
  console.log(parameter);
}
// function call
example("i am logged to the console");

#4

Thank u, but did not run what should i do ??


#5

can i see an updated version of your code?


#6

Sure
var greeting = function (eman) {
console.log("Hi" + " " + eman);
};


#7

where is your function call?

take another good look at my earlier answer, i even added comments!


#8

finalllly it worked Thank you so much i really appreciate it thank u again and sorry for bothering you


#9