What's wrong with this code? It's telling me I didn't call the "greeting function"


#1

var greeting = function (name) {
console.log("what's up " + name + ".");
};
greeting = ("Chaim");


#2

You call a function like this:

functionName(parameter);

To call the greeting function, do this;

greeting("param");

#3

Thanks for the help, I noticed that after I looked back at previous pages!


#4

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