I know we could use object.constructor.name to get the class name in javascript object oriented programming. But is there a function to get instance name.
For example:
function className(){
this.getName = function(){
alert(this.InstanceName);
};
}
objectA = new className();
objectA.getName();
How to print "objectA"?