Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

difference between the `.append()` method and the `.appendChild()` method

The ParentNode. append() method inserts a set of Node objects or DOMString objects after the last child of the ParentNode . ... append() allows you to also append DOMString objects, whereas Node. appendChild() only accepts Node objects.
 
PREVIOUS NEXT
Tagged: #difference #method #method
ADD COMMENT
Topic
Name
4+1 =