title: Raw javascript equivalent to jQuery.empty()
body: <p>I found some jQuery code to clear the contents of a div:</p>
  
  <pre><code>$('#masterdiv').empty();
  </code></pre>
  
  <p>Is there any similar way to do this in raw javascript, without jQuery or any other library?</p>