DEV Community

Discussion on: The Weird Thing About Deleting Items from Lists in JavaScript

Collapse
 
aleksandrhovhannisyan profile image
Aleksandr Hovhannisyan

insert that same element to be removed into the removeChild property

I think the wording here could confuse some readers. removeChild is a function, not a property, and you're calling it with a reference to the child node that the DOM should remove.

Collapse
 
alexlsalt profile image
Alex Morton

This is a great catch! Thank you -- editing now.