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