title: Trouble calling a function
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>What am I missing?</p>
  
  <pre><code>//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
  </code></pre>
  
  <p>or if I try</p>
  
  <pre><code>functionName = function(name)
  </code></pre>
  
  <p>I'll get a syntax error</p>