show object methods javascript code example Example: javascript check object methods Object.getOwnPropertyNames()