get the name of the class javascript code example
Example 1: how get class name
String className = this.getClass().getSimpleName();
Example 2: get name of class javascript
myObj.constructor.name
String className = this.getClass().getSimpleName();
myObj.constructor.name