Q. What will be the output of the following JavaScript code?

Code:
    <script>  
      
    var article = {  
                  "main title": "How to learn JavaScript",   
                  'sub-title': "The Definitive Guide",   
                  "for": "all audiences",   
                  author: {   
    firstname: "Scott",   
                             surname: "McCall"   
                          }  
               }  
    </script>  
  • (A) Properties
  • (B) property values
  • (C) property names
  • (D) objects
πŸ’¬ Discuss
βœ… Correct Answer: (C) property names

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
275
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Indresh Gehalot
Publisher
πŸ“ˆ
88%
Success Rate