3. Function Syntax


Having trouble in Function Syntax Exercise for JavaScript:


It asked me to 'call the function' and I did and it printed
'Great to see you , Sam'

The error says I 'did not pass the greeting function' Pass it a name!
It will not let me move forward.

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

// On line 11, call the greeting function!


Hi tey aske you to..

On line 11, call the greeting function!


I did call the greeting function:



you should remove the Say and the uppercase G to your call function so it should be like that



Thank you it worked.

In the exercise it says to do this:


This is why I did this:



it wouldn't work wither way for my D:


@lady_pieanite, if you can't figure it out you can always post a new question to the forum :slight_smile:


That's because in that case the name of the function was sayHello; it wasn't Hello.