Vidyalelo
JavaScript · Q47

Parsing, Benchmarking And Logging

Programming · JavaScript · question 47

Q47

How can you create a node for comment in JavaScript?

A.
comment()
B.
createComment()
Answer
C.
Comm()
D.
None of the mentioned

Answer: Option B

Solution

Answer: Option B
Solution:
The comment node can be created using the method Comment createComment(string data).