FrontendInterviews.dev

636. Object Key Enumeration Order

Easy•

Predict the output.

const obj = { 2: 'b', 1: 'a', x: 'x' }
console.log(Object.keys(obj))

What is the correct output/behavior?

Select an option and submit your answer.
Next Problem