Como limpar o Innerhtml em JavaScript

//Using jQuery.
$('.myElement').empty();

//Using Vanila JS
document.querySelector('.myElement').innerHTML = '';
Samuel Abusa Kennedy