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 51,960 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!!

Mister Moody
Mister Moody
38,525 Points

I encountered this same problem and was stuck, but your answer to this question helped me progress without issue!