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