How do I get the "grab me" text in HTML using vanilla javascript? I have some thoughts below, but I am looking for a better way.
HTML
<div>
<h1>H1 here</h1>
grab me
</div>
Javascript
let firstSetString = document.querySelector("h1").innerHTML;
let BothSetString = document.querySelector("div").innerText.replace("\n","")
let secondSetString = BothSetString.replace(firstSetString,"")
console.log(secondSetString)// returns grab me