Frontend
Interviews
.dev
Problems
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?
['2','1','x']
['1','2','x']
['x','1','2']
['1','x','2']
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer