js function to list available functions code example Example: javascript check object methods Object.getOwnPropertyNames()