const obj = {name: 'John', age: 30, gender: 'male'}; const keys = Object.keys(obj); const values = Object.values(obj); console.log(keys); // ["name", "age", "gender"] console.log(values); // ["John", 30, "male"]