title: Is it possible to append a method to a constructor/function without prototype property?
body: <pre><code>function DoIHavePrototype()
  {
      var a = 10;
  }
  
  CheckIt = new DoIHavePrototype();
  
  DoIHavePrototype.prototype.GetFnName = function()
  {
      return "DoIHavePrototype"
  }
  
  alert(CheckIt.GetFnName())
  </code></pre>
  
  <p>In the above code,I observe that prototype is an in-built property for the function using which we can append property/method to a function.</p>
  
  <p>But if I remove the prototype keyword in the above code like the following:</p>
  
  <pre><code>DoIHavePrototype.GetFnName = function()
      {
          return "DoIHavePrototype"
      }
  </code></pre>
  
  <p>I don't get error in function definition but instead I get error while calling the method
  alert(CheckIt.GetFnName()) as "CheckIt.GetFnName is not a function"</p>
  
  <p>What does the JS interpreter assume this to be??</p>