3.Function Syntax. You did not call the greeting function. Pass it a name!


Please help me, I can not get past this part, I do not understand what is wrong with my code.
This is my code.

// On line 11, call the greeting function!
var sayHello = function (greeting)
console.log('Hello' + " " + greeting)


You did not call the greeting function...

says something to me. The function is supposed to be named, greeting?

Pass it a name

implies a parameter, name...

var greeting = function (name) {


I think you can solve the rest. Without knowing what lesson this is we've only got the evidence to go by. Reread the instructions and check, to be sure.


Thank you for your help!


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.