JavaScript DOM Scripting By Example Adding and Removing Names Removing Names

Juneau Lim
Juneau Lim
11,213 Points

The li is not removed, only its contents(except text) are.

I have no idea why it does it. the code looks identical for me. screenshot of result screenshot of code

1 Answer

KRIS NIKOLAISEN
PRO
KRIS NIKOLAISEN
Pro Student 47,285 Points

You have

label.appendChild(button)

it should be

li.appendChild(button)
Juneau Lim
Juneau Lim
11,213 Points

My bad. thank you so much!!