Calling a function


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!


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


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