javascript get class name inside class code example
Example 1: how to get element by class name javascript
document.getElementsByClassName("legend").style.display="none";
Example 2: get name of class javascript
myObj.constructor.name
document.getElementsByClassName("legend").style.display="none";
myObj.constructor.name