title: most efficient javascript method declaration
body: <p>While writing javascript, one can define a method in 3 different ways.</p>
  
  <p>1] A function in global namespace</p>
  
  <pre><code>function doSomething();
  </code></pre>
  
  <p>2] A function that is member of a function</p>
  
  <pre><code>function Clazz() {}
  Clazz.doSomething = function(){};
  </code></pre>
  
  <p>3] A function that is memeber of the instance of function</p>
  
  <pre><code>function Clazz() {}
  Clazz.prototype.doSomething = function(){};
  </code></pre>
  
  <p>Depending upon the code organization, one can choose one of the above methods over others. </p>
  
  <p>But purely from performance standpoint which is the most efficient one? (especially between 1 and 2)</p>
  
  <p>Will your answer be different if doSomething has arguments?</p>