js get name of object class code example Example: get name of class javascript myObj.constructor.name