Question · JavaScript and TypeScript course · Module 5: Advanced JavaScript
Advanced JavaScript Object Methods
How do you get an array of all keys (properties) of an object in JavaScript?
Answer options
- Object.keys(obj)
- obj.getKeys()
- obj.properties()
- Object.values(obj)
You can check the correct answer by solving this task in the CodeWorlds game.