ExamVeda
Login
Home
This question belongs to Javascript Basic And Variables
Basic and Variables
?

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

Answer & Solution
Correct Answer: Option C
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.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.