HTML DOM Document createComment()
HTML DOM Document createComment() Method
The createComment() method is used for creating a comment and it will return the comment node.
Syntax:-
Its syntax is:- document.createComment(text)
Return:-
Its return is:- created comment node
Further Explanation:-
Parameter | Description |
text | Optional. The comment text. |