Aptitude | JavaScript Course Quiz 3 | Question 2

True or false: All keys in an object are strings.
(A) True
(B) False
(C) Depends on the Object type
(D) None of the above


Answer: (A)

Explanation: keys can only be strings, and numeric keys such as those used in Arrays are coerced and stored as strings.

Quiz of this Question



My Personal Notes arrow_drop_up


Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.

About immukul

Executive Software Developer at Cavisson Systems