const groceryList = document.getElementById('groceryList'); const iceCream = document.getElementById('iceCream'); groceryList.removeChild(iceCream);
let childNode = parentNode.removeChild(childNode); Code language: JavaScript (javascript)