how to get classname values in js code example Example: get name of class javascript myObj.constructor.name