This is my first time posting after looking through for a while and I am new to javascript, but I am having trouble figuring this out.
I am trying to call a function I have created, and everytime I attempt to call it...i am told I am not calling the function.
What am I missing?
//Simple greeting function
var greeting = function (name) {
console.log("Great to see you," + " " + name);
};
//Calling function
var greeting = function(name) {
console.log("Hello" + "" + name);
} // this was missing in the original question
or if I try
functionName = function(name)
I'll get a syntax error