title: Call a Javascript function and return a response
body: <p>I recently started working with Javascript and I saw this question but there was no explanation for this question. I have the following Javascript code:</p>
  
  <pre><code>var A = (function(){
    function Person(name){
      this.name = name;
    }
  
    var m = function(){
      return "Hello " + this.name;
    };
  
    Person.prototype.getGreeting = m;
  
    return Person;
  })();
  </code></pre>
  
  <p>What would I have to write so that it can call above code and have it return "Hello World"? I am still learning so pardon my ignorance.</p>