javascript how to get all tee methods of an object code example Example: javascript check object methods Object.getOwnPropertyNames()