lets say i have got this simple html
code
<div id="0">
<div id="0:0">
<div id="0:0:0"></div>
</div>
<div id="0:1"></div>
</div>
now lets add some javascript
let div_ids=["0","0:0","0:0:0","0:1"];
for(let i=0;i<div_ids.length;i++){
document.getElementById(div_ids[i]).addEventListener("click",()=>{console.log("hi");});
}
now we have an EventListener
for every div
now lets execute this javascript
code
document.querySelector("body").removeChild(document.getElementById("0"));
my question : will removing div#0
delete his and his children's EventListener
s ?