Beginner
JavaScript
Q28 / 100
What does Object.keys() return?
Correct! Well done.
Incorrect.
The correct answer is B) An array of the object's own enumerable property names
B
Correct Answer
An array of the object's own enumerable property names
Explanation
Object.keys({ a:1, b:2 }) returns ["a", "b"]. Object.values() returns [1,2]. Object.entries() returns [["a",1],["b",2]].
Progress
28/100