Home / Javascript Tips Generated By ChatGPT / Using Object.keys to Get All Keys in Javascript Object.keys returns an array of a given object’s own property names. Source Code console.log(Object.keys(person));