Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumJavaScriptProxy and ReflectSingle-choice MCQ

What does Reflect.ownKeys return that Object.keys does not, given this object?

const sym = Symbol('s'); const obj = { a: 1, [sym]: 2 }; Object.defineProperty(obj, 'b', { value: 3, enumerable: false }); console.log(Reflect.ownKeys(obj).length);