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>
β
Correct Answer: (B)
property names