Obtenha o nó pai do nó infantil

const myChildNode = document.querySelector("#childNodeId");
const parent = myChildNode.parentNode;
Spen