title: How do I clear the contents of a div without innerHTML = "";
body: <p>I have a div that is filled by JS created DOM elements,</p>
  
  <p>I want the div to be cleared upon the JS function repeating, however I have heard that using <code>document.getElementById('elName').innerHTML = "";</code> is not a good idea,</p>
  
  <p>What is a valid alternative to doing this to clear the div's contents?</p>