Calling a function


#1


I tried looking through the forum to help me understand this, but I still can't seem to get it. Can someone correct my code and explain why Mine won't work?

This is the error message that pops up.

Oops, try again. You did not call the greeting function. Pass it a name!


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

}
// On line 11, call the greeting function!
Greeting("Danise");


#2

Add ; semicolon after curly brackets and call function exactly same as in a variable greeting("Danise") not **G**reeting("Danise").


#3

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