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:
var A = (function(){
  function Person(name){
    this.name = name;
  }
  var m = function(){
    return "Hello " + this.name;
  };
  Person.prototype.getGreeting = m;
  return Person;
})();
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.
 
     
     
     
     
     
     
    