What does appendchild command do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What does appendchild command do?

9th Jun 2018, 6:42 PM
Aarnav Saxena
Aarnav Saxena - avatar
2 Answers
+ 3
appendChild is used to append a child in a html element. eg. If we have a <ol> list with three list <li> items, and using JS, if we need to add one more <li> element, then we can use appendChild.
9th Jun 2018, 6:45 PM
Sachin Artani
Sachin Artani - avatar
+ 1
appends a new html element into the parent element https://www.sololearn.com/learn/JavaScript/2755/
9th Jun 2018, 6:44 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar