Bootcamp Notes – Day 21 (Wed) – The Dom (Document Object Model) – Part 5 (Removing Nodes and Cloning Nodes)

The DOM – Removing Nodes There are two methods we can use to remove a node from the DOM: remove() and removeChild() remove() For the remove() method you must have a reference to the exact node to remove. nodeToRemove.remove(); removeChild()…