How to solve this "function" problem?


#1

var greeting = function(name) {
(console.log(val + " " + name);
};
greeting("Davis");

Are there anything wrong with these syntax above?


#2

What is "val"? If you replace this with a greeting string like "Hello" or whatever the instruction mentions your code should be fine.


#3

Thanks I already corrected it!