js list all methods of an object code example Example: list methods of object js Object.getOwnPropertyNames(obj)