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 names
  • (C) property values
  • (D) objects
πŸ’¬ Discuss
βœ… Correct Answer: (B) property names

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
223
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Akshay Kulkarni
Publisher
πŸ“ˆ
90%
Success Rate