What does the appendChild() method perform?

Vy Bùi

New member
What does the appendChild() method perform?
A. Appends a node in the middle of the index taken as the parameter
B. Appends a node as the first child
C. Appends a node as the last child
D. Replaces and appends at the last node
 
Answer: c
Explanation: The appendChild() method appends a node as the last child of a node. You can also use this method to move an element from one element to another.
 

Tìm kiếm

Back
Top