Q. How can you create a node for comment in JavaScript?
β
Correct Answer: (B)
createComment()
Explanation: The comment node can be created using the method Comment createComment(string data).