Question discussion

Consider the following code snippet :var book = { "main title": "JavaScript", 'sub-title': "The Definitive Guide", "for": "all audiences",…

308970Medium 1 reply 779 views
-1
Consider the following code snippet :var book = { "main title": "JavaScript", 'sub-title': "The Definitive Guide", "for": "all audiences", author: { firstname: "David", surname: "Flanagan" } };In the above snippet, firstname and surname are
  • Aproperties
  • Bproperty values
  • Cproperty names
  • Dobjects
Correct answer: C

Discussion 1

0
CCommunity
property names

firstname and surname are the property names. The value of that particular property is itself an object. That is why these property names are unquoted.