Get the name of a prototype constructor inside the constructor itself in javascript
<p>Is it possible to get the name of a class inside the class itself in javascript? It would be useful for recursions on dynamically created classes in my middleware.
Think that was an very improperly post — so I better define the problem I want to solve:</p>

<pre><code>MyClass = function(){
  this.classname = ??? // Here is required and needed to store as a property
}

MyClass.prototype.log = function(){
   alert(this.classname); // The alert should be MyClass
}


var myClassObj = new MyClass();
myClassObj.log();
</code></pre>
