# appendChild()

*noun*

say it: **“uh-PEND CHYLD”** **/əˈpɛnd tʃaɪld/**

A DOM method that adds an element inside another one, as its last child.

## What is **appendChild()** in JavaScript?

**appendChild()** — A DOM method that puts an element inside another one, after its existing children. If the element was already somewhere on the page, it moves.

```javascript
const row = document.createElement("li");
row.textContent = "Chang";
document.getElementById("cart").appendChild(row);
```

## In a sentence

- “**appendChild** put the new li at the bottom of the cart list.”

Level: Apprentice · [More JavaScript terms at this level](https://www.ask-codey.com/glossary?category=javascript&level=2)

Updated: October 28, 2026

Source: https://www.ask-codey.com/glossary/appendchild
