how to get name of current class code example
Example 1: javascript get class name
document.getElementById("myDIV").className = "mystyle";
Example 2: get name of class javascript
myObj.constructor.name
document.getElementById("myDIV").className = "mystyle";
myObj.constructor.name