Is it possible to do the following:
function A() {}
function B() {}
B.prototype = A;
function C() {}
C.prototype = A;
A.prototype.myname = function() { /* get 'B' or 'C' here */ }
so that when I for example call B.myname() I will have the name 'B' available in the function body?
Trying this.constructor.name as expected just returns 'A' every time.
=! Then, Why use a function as the prototype?