Q47
How can you create a node for comment in JavaScript?
A.
comment()
B.
createComment()
AnswerC.
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).