Open In App

Aptitude | JavaScript Course Quiz 3 | Question 2

Like Article
Like
Save
Share
Report

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


Last Updated : 10 May, 2019
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads