Syntax Error Please help


#1

Hi All,

Please I need your help I am bloody stuck for hours. I feel numb right now, I can hardly see whats wrong with my code.

Below is the code

Thanks


#2

var greeting = function (name) {
    console.log("Hello," + " " + Nitty);
};

should be

var greeting = function (name) {
    console.log("Hello," + " " + name);
};

#3

Thanks for your respond but I still get the syntax error.


#4

Can I see your updated code?


#5

Here it is

Call the greeting function once it is fixed! Don't forget to pass in a specific name.


#6

Remove all of line 9


#7

Thanks lots mate . Now it run.
Thanks Thanks.