js class method get name in call code example Example: get name of class javascript myObj.constructor.name