How would I go about removing all of the child elements of a DOM node in JavaScript?
Say I have the following (ugly) HTML:
&
The easiest way:
let container = document.getElementById("containerId"); container.innerHTML = "";