Skip to content
Skills
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Problems
Questions
Roles
Skills
Interview
Contest
Leaderboard
Home
/
Frontend Developer
/
Hard
/
Order of object keys
hard
20 pts · first answer counts
javascript
objects
Order of object keys
What does this print?
const o = { b: 1, 2: 1, a: 1, 1: 1 } console.log(Object.keys(o))
Choose one answer
A.
['b', '2', 'a', '1']
B.
['1', '2', 'b', 'a']
C.
['a', 'b', '1', '2']
D.
['b', 'a', '1', '2']
Submit answer
Report a problem
← Order of logs around await
map with parseInt →